Skip to content

Commit

Permalink
core/commands2: Fixed swarm command for new arguments API
Browse files Browse the repository at this point in the history
  • Loading branch information
mappum committed Nov 18, 2014
1 parent 0709621 commit a0bd29d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/commands2/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"path"

cmds "github.com/jbenet/go-ipfs/commands"
internal "github.com/jbenet/go-ipfs/core/commands2/internal"
peer "github.com/jbenet/go-ipfs/peer"
errors "github.com/jbenet/go-ipfs/util/debugerror"

Expand Down Expand Up @@ -94,10 +93,7 @@ ipfs swarm connect /ip4/104.131.131.82/tcp/4001/QmaCpDMGvV2BGHeYERUEnRQAwe3N8Szb
return nil, err
}

addrs, err := internal.CastToStrings(req.Arguments())
if err != nil {
return nil, cmds.ClientError("Improperly formatted peer addresses: " + err.Error())
}
addrs := req.Arguments()

if n.Network == nil {
return nil, errNotOnline
Expand Down

0 comments on commit a0bd29d

Please sign in to comment.