Skip to content

Commit

Permalink
define size of slice
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Korczynski <adam@adalogics.com>
  • Loading branch information
AdamKorcz committed Jan 8, 2024
1 parent ddb074f commit ba40d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks/evaluation/branch_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func BranchProtection(name string,
return checker.CreateInconclusiveResult(name, "unable to detect any development/release branches")
}

var scores []levelScore
scores := make([]levelScore, 0, len(branchScores))
for _, v := range branchScores {
scores = append(scores, *v)
}
Expand Down

0 comments on commit ba40d03

Please sign in to comment.