Skip to content

Commit d3762b8

Browse files
author
Will Dixon
authored
Remove the GoCyclo append
as BuildStats already appends
1 parent b699340 commit d3762b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/golinters/gocyclo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func (Gocyclo) Desc() string {
2222
func (g Gocyclo) Run(ctx context.Context, lintCtx *Context) ([]result.Issue, error) {
2323
var stats []gocycloAPI.Stat
2424
for _, f := range lintCtx.ASTCache.GetAllValidFiles() {
25-
stats = append(stats, gocycloAPI.BuildStats(f.F, f.Fset, stats)...)
25+
stats = gocycloAPI.BuildStats(f.F, f.Fset, stats)
2626
}
2727
if len(stats) == 0 {
2828
return nil, nil

0 commit comments

Comments
 (0)