We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b699340 commit d3762b8Copy full SHA for d3762b8
pkg/golinters/gocyclo.go
@@ -22,7 +22,7 @@ func (Gocyclo) Desc() string {
22
func (g Gocyclo) Run(ctx context.Context, lintCtx *Context) ([]result.Issue, error) {
23
var stats []gocycloAPI.Stat
24
for _, f := range lintCtx.ASTCache.GetAllValidFiles() {
25
- stats = append(stats, gocycloAPI.BuildStats(f.F, f.Fset, stats)...)
+ stats = gocycloAPI.BuildStats(f.F, f.Fset, stats)
26
}
27
if len(stats) == 0 {
28
return nil, nil
0 commit comments