fix bug in byMatchStart.Less()

Foud by https://github.com/dominikh/go-staticcheck

filter.go:84:10: identical expressions on the left and right side of the '<' operator
This commit is contained in:
Damian Gryski 2016-06-18 00:18:03 +02:00
parent ff7739dd7d
commit e0f624c537

View file

@ -81,7 +81,7 @@ func (m byMatchStart) Less(i, j int) bool {
}
if m[i][0] == m[j][0] {
return m[i][1]-m[i][0] < m[i][1]-m[i][0]
return m[i][1]-m[i][0] < m[j][1]-m[j][0]
}
return false