From 0709621a2c8436afa90c80e147985cc05723a73e Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Tue, 18 Nov 2014 01:32:32 -0800 Subject: [PATCH] core/commands2: Updated id command for new argument API --- core/commands2/id.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/commands2/id.go b/core/commands2/id.go index 8d9c77339..ba8f9c5d0 100644 --- a/core/commands2/id.go +++ b/core/commands2/id.go @@ -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 {