@cryptotaxi247 / kubo / commits / 0709621a2

core/commands2: Updated id command for new argument API

Matt Bell committed Nov 18, 2014 at 01:32 UTC 0709621a2c8436afa90c80e147985cc05723a73e
1 file changed +1 -4
core/commands2/id.go
+1 -4
@@ -52,10 +52,7 @@ if no peer is specified, prints out local peers info.
52 return printPeer(node.Identity)
53 }
54
55 - pid, ok := req.Arguments()[0].(string)
56 - if !ok {
57 - return nil, cmds.ClientError("Improperly formatted peer id")
58 - }
55 + pid := req.Arguments()[0]
56
57 id := peer.ID(b58.Decode(pid))
58 if len(id) == 0 {