提交 53bb0b63 作者: rht

(ineffassign) add err check to NewNode init

License: MIT
Signed-off-by: 's avatarrht <rhtbot@gmail.com>
上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论