File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
internal/filesystem/cgofuse Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import (
20
20
)
21
21
22
22
type (
23
- closer func () error
24
23
// Host is the cgofuse specific parameters
25
24
// of a mount point.
26
25
Host struct {
@@ -53,8 +52,6 @@ const (
53
52
mountedFilePath = string (os .PathSeparator ) + mountedFileName
54
53
)
55
54
56
- func (close closer ) Close () error { return close () }
57
-
58
55
func (mh * Host ) HostID () filesystem.Host { return HostID }
59
56
60
57
func (mh * Host ) ParseField (key , value string ) error {
@@ -170,7 +167,7 @@ func (mh *Host) Mount(fsys fs.FS) (io.Closer, error) {
170
167
if err := doMount (fuseHost , target , args ); err != nil {
171
168
return nil , err
172
169
}
173
- return closer (func () error {
170
+ return generic . Closer (func () error {
174
171
if fuseHost .Unmount () {
175
172
mh .sysquirks .unmount ()
176
173
return nil
You can’t perform that action at this time.
0 commit comments