mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 12:27:43 +08:00
core/commands2: Updated id command for new argument API
This commit is contained in:
parent
8968b98cf3
commit
0709621a2c
@ -52,10 +52,7 @@ if no peer is specified, prints out local peers info.
|
||||
return printPeer(node.Identity)
|
||||
}
|
||||
|
||||
pid, ok := req.Arguments()[0].(string)
|
||||
if !ok {
|
||||
return nil, cmds.ClientError("Improperly formatted peer id")
|
||||
}
|
||||
pid := req.Arguments()[0]
|
||||
|
||||
id := peer.ID(b58.Decode(pid))
|
||||
if len(id) == 0 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user