From e4c0d79e1a3a323bab7a02db998efbba4b537b7b Mon Sep 17 00:00:00 2001
From: Pavol Loffay
Date: Tue, 10 Aug 2021 11:43:47 +0200
Subject: [PATCH] fix
Signed-off-by: Pavol Loffay
---
cmd/es-index-cleaner/app/index_client_test.go | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cmd/es-index-cleaner/app/index_client_test.go b/cmd/es-index-cleaner/app/index_client_test.go
index 5327a3a2111..fadd5f634d7 100644
--- a/cmd/es-index-cleaner/app/index_client_test.go
+++ b/cmd/es-index-cleaner/app/index_client_test.go
@@ -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)
}