Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheu committed May 23, 2024
1 parent 67aa197 commit 13d55b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
13 changes: 2 additions & 11 deletions cmd/healthchecker/health_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,8 @@ func main() {
}
})
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
err := pflag.CommandLine.MarkHidden("vmodule")
if err != nil {
fmt.Println(err)
os.Exit(int(types.Unknown))
}
err = pflag.CommandLine.MarkHidden("logtostderr")
if err != nil {
fmt.Println(err)
os.Exit(int(types.Unknown))
}

_ = pflag.CommandLine.MarkHidden("vmodule")
_ = pflag.CommandLine.MarkHidden("logtostderr")
hco := options.NewHealthCheckerOptions()
hco.AddFlags(pflag.CommandLine)
pflag.Parse()
Expand Down
4 changes: 2 additions & 2 deletions cmd/logcounter/log_counter.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func main() {
}
})
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
pflag.CommandLine.MarkHidden("vmodule")
pflag.CommandLine.MarkHidden("logtostderr")
_ = pflag.CommandLine.MarkHidden("vmodule")
_ = pflag.CommandLine.MarkHidden("logtostderr")

fedo := options.NewLogCounterOptions()
fedo.AddFlags(pflag.CommandLine)
Expand Down

0 comments on commit 13d55b2

Please sign in to comment.