core/commands2: Updated id command for new argument API

This commit is contained in:
Matt Bell 2014-11-18 01:32:32 -08:00
parent 8968b98cf3
commit 0709621a2c

View File

@ -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 {