Fix lint issues: gocritic linter (#477)

This commit is contained in:
Chris McGehee 2021-05-19 23:21:01 -07:00 committed by GitHub
parent 8372067a70
commit 91b3641196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ linters:
# - gochecknoinits
- gocognit
- goconst
# - gocritic
- gocritic
- gocyclo
- godot
- godox

View File

@ -94,7 +94,7 @@ func MultiCheckAnd(fns ...CheckFn) CheckFn {
for _, fn := range fns {
result := fn(c)
if len(minResult.Name) == 0 {
if minResult.Name == "" {
minResult.Name = result.Name
}
if Bool2int(result.Pass) < Bool2int(minResult.Pass) ||