From 3e150dc62d6ac2cd64457bd408f424f050c1b6b4 Mon Sep 17 00:00:00 2001 From: Josh Mills Date: Wed, 7 Apr 2021 13:57:05 +0100 Subject: [PATCH] Simplify range expression --- main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_test.go b/main_test.go index 07c66b4..50a966f 100644 --- a/main_test.go +++ b/main_test.go @@ -24,7 +24,7 @@ type mockKafkaClient struct{ clusters map[string]mockCluster } func (m mockKafkaClient) ListClusters(ctx context.Context, params *kafka.ListClustersInput, optFns ...func(*kafka.Options)) (*kafka.ListClustersOutput, error) { var clusterInfoList []types.ClusterInfo keys := make([]string, 0) - for k, _ := range m.clusters { + for k := range m.clusters { keys = append(keys, k) } sort.Strings(keys)