diff options
author | Valery Piashchynski <[email protected]> | 2022-11-25 22:15:50 +0100 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-11-25 22:15:50 +0100 |
commit | 606b80add7b9ccab6784f4b0aa17cddb2912601a (patch) | |
tree | 3a50d5f80a9b9b3f6d90cdf6c911b485db6093f0 | |
parent | bb97ae875c0ce69fa2f2fc502d5ee0805fed1f3e (diff) |
fix: fix linters warnings
Signed-off-by: Valery Piashchynski <[email protected]>
-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. |