Skip to content

Commit 3e3289b

Browse files
committed
sort slices comment
1 parent f7063e1 commit 3e3289b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/cac/diff/diff.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func Tree(source models.Rfc7396PatchOperation, target models.Rfc7396PatchOperati
164164
diffOpts = append(diffOpts, filterSecretFields)
165165
}
166166

167+
// sorting slices to avoid diffs due to different order
167168
diffOpts = append(diffOpts, cmpopts.SortSlices(func(a, b string) bool {
168169
return a < b
169170
}))

0 commit comments

Comments
 (0)