Skip to content

Commit

Permalink
remove sort on result issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
coanor committed Oct 12, 2023
1 parent 0365be5 commit fd4631d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions promlinter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"go/ast"
"go/token"
"log"
"sort"
"strconv"
"strings"
Expand Down Expand Up @@ -175,13 +174,6 @@ func RunLint(fs *token.FileSet, files []*ast.File, s Setting) []Issue {
}
}

for _, iss := range v.issues {
log.Printf("%s, pos: %s", iss.Metric, iss.Pos)
}

sort.Slice(v.issues, func(i, j int) bool {
return v.issues[i].Pos.String() < v.issues[j].Pos.String()
})
return v.issues
}

Expand Down

0 comments on commit fd4631d

Please sign in to comment.