mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00
s/\[0:/\[:/g
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
@ -156,7 +156,7 @@ func (c *Command) Resolve(pth []string) ([]*Command, error) {
|
||||
cmd = cmd.Subcommand(name)
|
||||
|
||||
if cmd == nil {
|
||||
pathS := path.Join(pth[0:i])
|
||||
pathS := path.Join(pth[:i])
|
||||
return nil, fmt.Errorf("Undefined command: '%s'", pathS)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user