@cryptotaxi247 / kubo / commits / 53bb0b634

(ineffassign) add err check to NewNode init

License: MIT Signed-off-by: rht <rhtbot@gmail.com>

rht committed Oct 11, 2015 at 11:37 UTC 53bb0b63431192867d5a9eb3c4b0f582141ae7fa
1 file changed +3
core/mock/mock.go
+3
@@ -58,6 +58,9 @@ func MockCmdsCtx() (commands.Context, error) {
58 node, err := core.NewNode(context.Background(), &core.BuildCfg{
59 Repo: r,
60 })
61 + if err != nil {
62 + return commands.Context{}, err
63 + }
64
65 return commands.Context{
66 Online: true,