Skip to content

Commit

Permalink
Overrides don't exist in the behaviorMap
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <[email protected]>
  • Loading branch information
egibs committed Oct 7, 2024
1 parent 3386759 commit 65ea6e1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,6 @@ func handleOverrides(original, override []*malcontent.Behavior) []*malcontent.Be
if b, exists := behaviorMap[o.Override]; exists {
b.RiskLevel = o.RiskLevel
b.RiskScore = o.RiskScore

// Delete the override rule from the behavior after applying its severity to the original rule
delete(behaviorMap, o.RuleName)
}
}

Expand Down

0 comments on commit 65ea6e1

Please sign in to comment.