mirror of
https://github.com/securego/gosec.git
synced 2025-03-01 04:33:29 +00:00
Merge pull request #221 from Quasilyte/quasilyte/dupSubExpr
fix duplicated index issue in Less method
This commit is contained in:
commit
f5b44b0740
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ type sortBySeverity []*gosec.Issue
|
||||||
|
|
||||||
func (s sortBySeverity) Len() int { return len(s) }
|
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] }
|
func (s sortBySeverity) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue