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 a943c62 commit 4a92c99
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 @@ -850,7 +850,7 @@ Filters default to those specified under the "Swarm.AddrFilters" config key.
return err
}

if n.PeerHost == nil {
if !n.IsOnline {
return ErrNotOnline
}

Expand Down Expand Up @@ -886,7 +886,7 @@ var swarmFiltersAddCmd = &cmds.Command{
return err
}

if n.PeerHost == nil {
if !n.IsOnline {
return ErrNotOnline
}

Expand Down Expand Up @@ -942,7 +942,7 @@ var swarmFiltersRmCmd = &cmds.Command{
return err
}

if n.PeerHost == nil {
if !n.IsOnline {
return ErrNotOnline
}

Expand Down

0 comments on commit 4a92c99

Please sign in to comment.