1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 23:42:20 +08:00

(ineffassign) add err check to NewNode init

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
rht
2015-10-11 11:37:06 +07:00
parent bea47c9b0a
commit 53bb0b6343

View File

@ -58,6 +58,9 @@ func MockCmdsCtx() (commands.Context, error) {
node, err := core.NewNode(context.Background(), &core.BuildCfg{
Repo: r,
})
if err != nil {
return commands.Context{}, err
}
return commands.Context{
Online: true,