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:
@ -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,
|
||||
|
Reference in New Issue
Block a user