Skip to content

Commit

Permalink
Remove space between // and nolint
Browse files Browse the repository at this point in the history
This is enforced by newer releases of golangci-lint.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and dfarrell07 committed Nov 15, 2022
1 parent b7dd092 commit 9fdff05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/agent/controller/controller_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9fdff05

Please sign in to comment.