Skip to content

Commit

Permalink
Remove strings.Compare from example-test (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
ketsiambaku authored Sep 11, 2024
1 parent 74f6915 commit 4d4c09f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/common/debug/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"encoding/json"
"fmt"
"sort"
"strings"
"sync"

"go.uber.org/atomic"
Expand Down Expand Up @@ -78,7 +77,7 @@ func (ati *activityTrackerImpl) Stats() Activities {
}
}
sort.Slice(activities, func(i, j int) bool {
return strings.Compare(activities[i].Info.ActivityType, activities[j].Info.ActivityType) < 0
return activities[i].Info.ActivityType < activities[j].Info.ActivityType
})
return activities
}
Expand Down

0 comments on commit 4d4c09f

Please sign in to comment.