提交 c5f887dc 作者: Łukasz Magiera 提交者: Steven Allen

fuse: fix govet warning

License: MIT
Signed-off-by: 's avatarŁukasz Magiera <magik6k@gmail.com>
上级 52992990
...@@ -8,6 +8,8 @@ import ( ...@@ -8,6 +8,8 @@ import (
core "github.com/ipfs/go-ipfs/core" 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 { func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
return errors.New("not compiled in") return errors.New("not compiled in")
} }
...@@ -30,6 +30,8 @@ var platformFuseChecks = func(*core.IpfsNode) error { ...@@ -30,6 +30,8 @@ var platformFuseChecks = func(*core.IpfsNode) error {
return nil return nil
} }
type errNeedFuseVersion error // used in tests, needed in OSX
func Mount(node *core.IpfsNode, fsdir, nsdir string) error { func Mount(node *core.IpfsNode, fsdir, nsdir string) error {
// check if we already have live mounts. // check if we already have live mounts.
// if the user said "Mount", then there must be something wrong. // if the user said "Mount", then there must be something wrong.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论