Skip to content

Commit

Permalink
chore: parennthesis decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Mar 12, 2024
1 parent 3f4b50d commit 2e21cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/result/processors/severity.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (p *Severity) Process(issues []result.Issue) ([]result.Issue, error) {
func (p *Severity) transform(issue *result.Issue) *result.Issue {
for _, rule := range p.rules {
if rule.match(issue, p.files, p.log) {
if rule.severity == severityFromLinter || rule.severity == "" && p.defaultSeverity == severityFromLinter {
if rule.severity == severityFromLinter || (rule.severity == "" && p.defaultSeverity == severityFromLinter) {
return issue
}

Expand Down

0 comments on commit 2e21cf7

Please sign in to comment.