Skip to content

Commit

Permalink
fix: return sorted string slices
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhop committed Mar 12, 2024
1 parent 60ee09e commit 56f72f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ func getNewTags(objectLabel string, tags []string, rules []TagRule) ([]string, b
}
}

sort.Strings(combinedNewTags)
return combinedNewTags, found
}

Expand Down Expand Up @@ -536,6 +537,7 @@ func sliceDifference(a, b []string) []string {
diff = append(diff, x)
}
}
sort.Strings(diff)
return diff
}

Expand Down

0 comments on commit 56f72f6

Please sign in to comment.