From 13d55b20901c03ac7d45bd3d3d486c62304cedc5 Mon Sep 17 00:00:00 2001 From: Paulo Sousa Date: Thu, 23 May 2024 14:19:50 -0300 Subject: [PATCH] fix lint --- cmd/healthchecker/health_checker.go | 13 ++----------- cmd/logcounter/log_counter.go | 4 ++-- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/cmd/healthchecker/health_checker.go b/cmd/healthchecker/health_checker.go index afb6895c3..998d16445 100644 --- a/cmd/healthchecker/health_checker.go +++ b/cmd/healthchecker/health_checker.go @@ -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() diff --git a/cmd/logcounter/log_counter.go b/cmd/logcounter/log_counter.go index ddcdc3b7c..ef5b7a241 100644 --- a/cmd/logcounter/log_counter.go +++ b/cmd/logcounter/log_counter.go @@ -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)