提交 b6f89db1 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

fix(mount_unix) optionvalue signature

@mappum can you just sanity check me here with a quick LGTM CR?
上级 654fa3fe
......@@ -52,10 +52,14 @@ not be listable, as it is virtual. Accessing known paths directly.
fsdone := mountIpfs(ctx.Node, fsdir)
// get default mount points
nsdir := ctx.Config.Mounts.IPNS
if req.Option("n").Found() {
nsdir, _ = req.Option("n").String()
nsdir, found, err := req.Option("n").String()
if err != nil {
return nil, err
}
if !found {
nsdir = ctx.Config.Mounts.IPNS // NB: be sure to not redeclare!
}
nsdone := mountIpns(ctx.Node, nsdir, fsdir)
// wait until mounts return an error (or timeout if successful)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论