diff --git a/pkg/agent/controller/controller_suite_test.go b/pkg/agent/controller/controller_suite_test.go index 5aca47edb..63520d83b 100644 --- a/pkg/agent/controller/controller_suite_test.go +++ b/pkg/agent/controller/controller_suite_test.go @@ -75,7 +75,7 @@ func init() { // set logging verbosity of agent in unit test to DEBUG flags := flag.NewFlagSet("kzerolog", flag.ExitOnError) kzerolog.AddFlags(flags) - // nolint:errcheck // Ignore errors; CommandLine is set for ExitOnError. + //nolint:errcheck // Ignore errors; CommandLine is set for ExitOnError. flags.Parse([]string{"-v=2"}) kzerolog.InitK8sLogging() diff --git a/pkg/agent/main.go b/pkg/agent/main.go index e919ec3a1..011ff262a 100644 --- a/pkg/agent/main.go +++ b/pkg/agent/main.go @@ -90,7 +90,7 @@ func main() { // we want at least the verbosity level to match what was requested klogFlags := flag.NewFlagSet("klog", flag.ExitOnError) klog.InitFlags(klogFlags) - // nolint:errcheck // Ignore errors; CommandLine is set for ExitOnError. + //nolint:errcheck // Ignore errors; CommandLine is set for ExitOnError. klogFlags.Parse(os.Args[1:]) logger.Infof("Arguments: %v", os.Args)