Skip to content

Commit

Permalink
Use slices instead of sort pkg (#4992)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Pająk <pellared@hotmail.com>
  • Loading branch information
MrAlias and pellared committed Feb 29, 2024
1 parent ec8e6ea commit a7034da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions baggage/baggage_test.go
Expand Up @@ -6,7 +6,7 @@ package baggage
import (
"fmt"
"math/rand"
"sort"
"slices"
"strings"
"testing"

Expand Down Expand Up @@ -611,11 +611,11 @@ func TestBaggageString(t *testing.T) {
for i, m := range members {
parts := strings.Split(m, propertyDelimiter)
if len(parts) > 1 {
sort.Strings(parts[1:])
slices.Sort(parts[1:])
members[i] = strings.Join(parts, propertyDelimiter)
}
}
sort.Strings(members)
slices.Sort(members)
return strings.Join(members, listDelimiter)
}

Expand Down

0 comments on commit a7034da

Please sign in to comment.