Skip to content

Commit

Permalink
Fix golint error.
Browse files Browse the repository at this point in the history
Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji committed Aug 22, 2024
1 parent 77262e2 commit a54ae8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k8s/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ func init() {
flags.ApplyGlobalFlags(cmd)

if cmd.Flags().Lookup("log-flush-frequency") != nil {
cmd.Flags().MarkHidden("log-flush-frequency")
if err := cmd.Flags().MarkHidden("log-flush-frequency"); err != nil {
log.Fatal(err, "Failed to mark hidden flag")
}
}
// disable completion command
cmd.CompletionOptions.DisableDefaultCmd = true
Expand Down

0 comments on commit a54ae8d

Please sign in to comment.