Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit ce8c436

Browse files
ketsiambakumrombout
authored andcommitted
Remove strings.Compare from example-test (cadence-workflow#1367)
1 parent 3283fa8 commit ce8c436

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/common/debug/example_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"encoding/json"
2525
"fmt"
2626
"sort"
27-
"strings"
2827
"sync"
2928

3029
"go.uber.org/atomic"
@@ -78,7 +77,7 @@ func (ati *activityTrackerImpl) Stats() Activities {
7877
}
7978
}
8079
sort.Slice(activities, func(i, j int) bool {
81-
return strings.Compare(activities[i].Info.ActivityType, activities[j].Info.ActivityType) < 0
80+
return activities[i].Info.ActivityType < activities[j].Info.ActivityType
8281
})
8382
return activities
8483
}

0 commit comments

Comments
 (0)