Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: jiefenghuang <[email protected]>
  • Loading branch information
jiefenghuang committed Aug 9, 2024
1 parent 9554edc commit 9a9a64f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/fuse/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,10 @@ func Serve(v *vfs.VFS, options string, xattrs, ioctl bool) error {
}
return fmt.Errorf("fuse: %s", err)
}
defer fssrv.Unmount()
defer func() {
_ = fssrv.Unmount()
}()

if runtime.GOOS == "linux" {
v.InvalidateEntry = func(parent Ino, name string) syscall.Errno {
return syscall.Errno(fssrv.EntryNotify(uint64(parent), name))
Expand Down

0 comments on commit 9a9a64f

Please sign in to comment.