Skip to content

Commit e3f8ce8

Browse files
committed
review: move issueComparator
1 parent ceb50e3 commit e3f8ce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/result/processors/sort_results.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const (
2929

3030
var _ Processor = (*SortResults)(nil)
3131

32+
type issueComparator func(a, b *result.Issue) int
33+
3234
type SortResults struct {
3335
cmps map[string][]issueComparator
3436

@@ -84,8 +86,6 @@ func (p SortResults) Process(issues []result.Issue) ([]result.Issue, error) {
8486

8587
func (SortResults) Finish() {}
8688

87-
type issueComparator func(a, b *result.Issue) int
88-
8989
func byFileName(a, b *result.Issue) int {
9090
return strings.Compare(a.FilePath(), b.FilePath())
9191
}

0 commit comments

Comments
 (0)