Skip to content

Commit

Permalink
review: move issueComparator
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Nov 23, 2024
1 parent ceb50e3 commit e3f8ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/result/processors/sort_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const (

var _ Processor = (*SortResults)(nil)

type issueComparator func(a, b *result.Issue) int

type SortResults struct {
cmps map[string][]issueComparator

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

func (SortResults) Finish() {}

type issueComparator func(a, b *result.Issue) int

func byFileName(a, b *result.Issue) int {
return strings.Compare(a.FilePath(), b.FilePath())
}
Expand Down

0 comments on commit e3f8ce8

Please sign in to comment.