@cryptotaxi247 / kubo / commits / c5f887dc2

fuse: fix govet warning

License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>

Łukasz Magiera committed Apr 1, 2019 at 21:26 UTC c5f887dc2afafcfecd5b4a253056d7eaaeba4200
2 files changed +4
fuse/node/mount_nofuse.go
+2
@@ -8,6 +8,8 @@ import (
8 core "github.com/ipfs/go-ipfs/core"
9 )
10
11 +type errNeedFuseVersion error // used in tests, needed in OSX
12 +
13 func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
14 return errors.New("not compiled in")
15 }
fuse/node/mount_unix.go
+2
@@ -30,6 +30,8 @@ var platformFuseChecks = func(*core.IpfsNode) error {
30 return nil
31 }
32
33 +type errNeedFuseVersion error // used in tests, needed in OSX
34 +
35 func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
36 // check if we already have live mounts.
37 // if the user said "Mount", then there must be something wrong.