Skip to content

Commit

Permalink
apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
aya committed Sep 22, 2022
1 parent b8aa173 commit a943c62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/commands/swarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ var swarmPeeringAddCmd = &cmds.Command{
if err != nil {
return err
}
if node.PeerHost == nil {
if !node.IsOnline {
return ErrNotOnline
}

Expand Down Expand Up @@ -156,7 +156,7 @@ var swarmPeeringLsCmd = &cmds.Command{
if err != nil {
return err
}
if node.PeerHost == nil {
if !node.IsOnline {
return ErrNotOnline
}

Expand Down Expand Up @@ -196,7 +196,7 @@ var swarmPeeringRmCmd = &cmds.Command{
if err != nil {
return err
}
if node.PeerHost == nil {
if !node.IsOnline {
return ErrNotOnline
}

Expand Down

0 comments on commit a943c62

Please sign in to comment.