Commit 0709621a authored by Matt Bell's avatar Matt Bell

core/commands2: Updated id command for new argument API

parent 8968b98c
...@@ -52,10 +52,7 @@ if no peer is specified, prints out local peers info. ...@@ -52,10 +52,7 @@ if no peer is specified, prints out local peers info.
return printPeer(node.Identity) return printPeer(node.Identity)
} }
pid, ok := req.Arguments()[0].(string) pid := req.Arguments()[0]
if !ok {
return nil, cmds.ClientError("Improperly formatted peer id")
}
id := peer.ID(b58.Decode(pid)) id := peer.ID(b58.Decode(pid))
if len(id) == 0 { if len(id) == 0 {
......
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