Skip to content

Commit

Permalink
fix: lint error with checking cmd.Usage()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fornaro <[email protected]>
  • Loading branch information
xunholy committed Nov 13, 2023
1 parent 86ac8a9 commit 7210bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advisor/cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var networkPolicyCmd = &cobra.Command{
} else {
// Validate that a pod name is provided
if len(args) != 1 {
cmd.Usage()
_ = cmd.Usage()
return
}
options.Mode = k8s.SinglePod
Expand Down

0 comments on commit 7210bfb

Please sign in to comment.