Skip to content

Commit fd4631d

Browse files
committed
remove sort on result issue.
1 parent 0365be5 commit fd4631d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

promlinter.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"go/ast"
66
"go/token"
7-
"log"
87
"sort"
98
"strconv"
109
"strings"
@@ -175,13 +174,6 @@ func RunLint(fs *token.FileSet, files []*ast.File, s Setting) []Issue {
175174
}
176175
}
177176

178-
for _, iss := range v.issues {
179-
log.Printf("%s, pos: %s", iss.Metric, iss.Pos)
180-
}
181-
182-
sort.Slice(v.issues, func(i, j int) bool {
183-
return v.issues[i].Pos.String() < v.issues[j].Pos.String()
184-
})
185177
return v.issues
186178
}
187179

0 commit comments

Comments
 (0)