Skip to content

Commit

Permalink
🧹 range for impact is 0 - 100
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Zunker <[email protected]>
  • Loading branch information
afiune and czunker committed Dec 27, 2024
1 parent 8f7a380 commit 7df4daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion policy/score_calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ func (c *bandedScoreCalculator) Add(score *Score, impact *explorer.Impact) {
if impact != nil {
// Store pointer to avoid panic
if impactV := impact.GetValue(); impactV != nil {
if value := impactV.GetValue(); value < 100 && value > 0 {
if value := impactV.GetValue(); value <= 100 && value >= 0 {
category = 100 - uint32(value)
}
}
Expand Down

0 comments on commit 7df4daf

Please sign in to comment.