Commit 53bb0b63 authored by rht's avatar rht

(ineffassign) add err check to NewNode init

License: MIT
Signed-off-by: default avatarrht <rhtbot@gmail.com>
parent bea47c9b
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment