Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay committed Aug 10, 2021
1 parent 007ae44 commit 0cd66b9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/es-index-cleaner/app/index_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ func TestClientGetIndices(t *testing.T) {
} else {
require.NoError(t, err)
sort.Slice(indices, func(i, j int) bool {
if strings.Compare(indices[i].Index, indices[j].Index) < 0 {
return true
}
return false
return strings.Compare(indices[i].Index, indices[j].Index) < 0
})
assert.Equal(t, test.indices, indices)
}
Expand Down

0 comments on commit 0cd66b9

Please sign in to comment.