diff options
-rwxr-xr-x | .golangci.yml | 1 | ||||
-rw-r--r-- | cmd/rr/main.go | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/.golangci.yml b/.golangci.yml index aaa08667..aa2d665b 100755 --- a/.golangci.yml +++ b/.golangci.yml @@ -53,7 +53,6 @@ linters: # All available linters list: <https://golangci-lint.run/usage/linters/ - exportloopref # checks for pointers to enclosing loop variables - funlen # Tool for detection of long functions - gochecknoglobals # Checks that no globals are present in Go code - - gochecknoinits # Checks that no init functions are present in Go code - gocognit # Computes and checks the cognitive complexity of functions - goconst # Finds repeated strings that could be replaced by a constant - gocritic # The most opinionated Go source code linter diff --git a/cmd/rr/main.go b/cmd/rr/main.go index 023e6ccb..b065c9fe 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -16,9 +16,7 @@ var exitFn = os.Exit //nolint:gochecknoglobals func main() { exitFn(run()) } func init() { - _, _ = maxprocs.Set(maxprocs.Min(1), maxprocs.Logger(func(_ string, _ ...interface{}) { - return - })) + _, _ = maxprocs.Set(maxprocs.Min(1), maxprocs.Logger(func(_ string, _ ...any) {})) } // run this CLI application. |