mirror of
https://github.com/ossf/scorecard.git
synced 2024-08-15 11:20:30 +03:00
Fix lint issues: gocritic linter (#477)
This commit is contained in:
parent
8372067a70
commit
91b3641196
@ -19,7 +19,7 @@ linters:
|
||||
# - gochecknoinits
|
||||
- gocognit
|
||||
- goconst
|
||||
# - gocritic
|
||||
- gocritic
|
||||
- gocyclo
|
||||
- godot
|
||||
- godox
|
||||
|
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user