From 8761ef4d37255eff2d912d2a35e6f442424bd98a Mon Sep 17 00:00:00 2001 From: Shreevari SP Date: Thu, 3 Feb 2022 20:45:03 +0530 Subject: [PATCH] Lint code --- client/client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index 5dd214b32..8411f1294 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -256,7 +256,7 @@ func removeWhiteSpace(input string) string { func getFilter(name string, values []string) []*AdditionalFilter { return []*AdditionalFilter{ - &AdditionalFilter{ + { Name: name, Values: values, }, @@ -267,8 +267,8 @@ func runTest(filters []*AdditionalFilter, inputString string, expected string) b input := io.NopCloser(strings.NewReader(inputString)) fmt.Println(expected) baseSearchPaths := [][]string{ - []string{"spec"}, - []string{"spec", "resources"}, + {"spec"}, + {"spec", "resources"}, } actualBytes, _ := io.ReadAll(filter(input, filters, baseSearchPaths)) actual := string(actualBytes)