Skip to content

Commit

Permalink
core/commands2: Updated id command for new argument API
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Nov 18, 2014
1 parent 8968b98 commit 0709621
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/commands2/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0709621

Please sign in to comment.