Update golangci-linter

This commit is contained in:
9seconds
2021-02-26 00:52:09 +03:00
parent 91197c0334
commit 33b1a5426c
21 changed files with 44 additions and 42 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import (
"go.uber.org/zap/zapcore"
)
func Proxy() error { // nolint: funlen
func Proxy() error { // nolint: funlen,cyclop
ctx := utils.GetSignalContext()
atom := zap.NewAtomicLevel()
+2 -2
View File
@@ -9,7 +9,7 @@ import (
func Fatal(arg interface{}) {
if value, ok := arg.(error); ok {
arg = fmt.Errorf("fatal error: %+v", value)
arg = fmt.Errorf("fatal error: %+v", value) // nolint: errorlint
}
PrintStderr(arg)
@@ -21,7 +21,7 @@ func PrintStderr(args ...interface{}) {
}
func PrintStdout(args ...interface{}) {
fmt.Println(args...)
fmt.Println(args...) // nolint: forbidigo
}
func PrintJSONStderr(data interface{}) {