Skip to content

Commit

Permalink
cmd/continuity/continuityfs: SA1019: fuse.ENOENT is deprecated
Browse files Browse the repository at this point in the history
    Error: continuityfs/fuse.go:200:15: SA1019: fuse.ENOENT is deprecated: Return a syscall.Errno directly. See ToErrno for exact rules. (staticcheck)
            return nil, fuse.ENOENT
                        ^

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Oct 28, 2024
1 parent 38fcdae commit cadd3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/continuity/continuityfs/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ type direnter interface {
func (d *Dir) Lookup(ctx context.Context, name string) (fs.Node, error) {
node, ok := d.nodes[name]
if !ok {
return nil, fuse.ENOENT
return nil, syscall.ENOENT
}
return node, nil
}
Expand Down

0 comments on commit cadd3a2

Please sign in to comment.