Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
svetomir committed Apr 24, 2020
1 parent 7d1fc7b commit 804877d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cmd/beekeeper/cmd/check_peercount.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ Expected peer count equals: node-count + bootnode-count - 1.`,
cmd.Flags().IntP(optionNameBootNodeCount, "b", 1, "bootnode count")
cmd.Flags().IntP(optionNameNodeCount, "c", 1, "node count")
cmd.Flags().StringP(optionNameNamespace, "n", "", "Kubernetes namespace")
cmd.MarkFlagRequired(optionNameNamespace)
if err := cmd.MarkFlagRequired(optionNameNamespace); err != nil {
panic(err)
}

return cmd
}
2 changes: 0 additions & 2 deletions pkg/bee/debugapi/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ var (
ErrInternalServerError = errors.New("internal server error")
ErrMaintenance = errors.New("maintenance")
)

var errInvalidPageNumber = errors.New("invalid page number")
4 changes: 2 additions & 2 deletions pkg/check/peercount.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ func PeerCount(opts PeerCountOptions) (err error) {
}

if len(resp.Peers) == expectedPeerCount {
fmt.Println(fmt.Sprintf("Node %d passed. Peers %d/%d.", i, len(resp.Peers), expectedPeerCount))
fmt.Printf("Node %d passed. Peers %d/%d.\n", i, len(resp.Peers), expectedPeerCount)
} else {
fmt.Println(fmt.Sprintf("Node %d failed. Peers %d/%d.", i, len(resp.Peers), expectedPeerCount))
fmt.Printf("Node %d failed. Peers %d/%d.\n", i, len(resp.Peers), expectedPeerCount)
return errPeerCount
}
}
Expand Down

0 comments on commit 804877d

Please sign in to comment.