fuse: fix govet warning

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera 2019-04-01 21:26:04 +02:00 committed by Steven Allen
parent 5299299037
commit c5f887dc2a
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@ import (
core "github.com/ipfs/go-ipfs/core"
)
type errNeedFuseVersion error // used in tests, needed in OSX
func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
return errors.New("not compiled in")
}

View File

@ -30,6 +30,8 @@ var platformFuseChecks = func(*core.IpfsNode) error {
return nil
}
type errNeedFuseVersion error // used in tests, needed in OSX
func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
// check if we already have live mounts.
// if the user said "Mount", then there must be something wrong.