From bf941c7eb9e2e551d89c87912fd56ca1f6a11755 Mon Sep 17 00:00:00 2001 From: Ketsia Date: Tue, 10 Sep 2024 23:03:18 +0200 Subject: [PATCH] Remove strings.Compare from example-test --- internal/common/debug/example_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/common/debug/example_test.go b/internal/common/debug/example_test.go index a60130722..bb6be1f70 100644 --- a/internal/common/debug/example_test.go +++ b/internal/common/debug/example_test.go @@ -24,7 +24,6 @@ import ( "encoding/json" "fmt" "sort" - "strings" "sync" "go.uber.org/atomic" @@ -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 }