diff --git a/cmd/gosec/sort_issues.go b/cmd/gosec/sort_issues.go index 10a86eb..570f9cc 100644 --- a/cmd/gosec/sort_issues.go +++ b/cmd/gosec/sort_issues.go @@ -10,7 +10,7 @@ type sortBySeverity []*gosec.Issue func (s sortBySeverity) Len() int { return len(s) } -func (s sortBySeverity) Less(i, j int) bool { return s[i].Severity > s[i].Severity } +func (s sortBySeverity) Less(i, j int) bool { return s[i].Severity > s[j].Severity } func (s sortBySeverity) Swap(i, j int) { s[i], s[j] = s[j], s[i] }