Skip to content

Commit c97b109

Browse files
committed
Fix linter issues
Signed-off-by: Vivek Goyal <vivek.goyal@broadcom.com>
1 parent f755b93 commit c97b109

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

internal/resources/akscluster/resource_akscluster_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ func Test_pollUntilReady(t *testing.T) {
841841
tt.args.interval, tt.wantError, gotErr)
842842
}
843843
}
844+
844845
if tt.validation != nil {
845846
tt.validation(t, tt.args)
846847
}

internal/resources/ekscluster/ekscluster_flatten_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ func TestFlattenClusterSpec(t *testing.T) {
444444
t.Run(test.description, func(t *testing.T) {
445445
spec, nps := test.getInput()
446446
output := flattenClusterSpec(spec, nps)
447+
447448
print(test.expected)
448449
print(output)
449450
require.Equal(t, test.expected, output)

internal/resources/ekscluster/helpers_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,9 @@ func TestNodepoolSpecEqual(t *testing.T) {
321321
for _, test := range tests {
322322
t.Run(test.name, func(t *testing.T) {
323323
spec1 := getNodepoolSpec()
324-
spec2 := getNodepoolSpec()
325324
test.modifySpec1(spec1)
325+
326+
spec2 := getNodepoolSpec()
326327
test.modifySpec2(spec2)
327328

328329
require.Equal(t, test.result, nodepoolSpecEqual(spec1, spec2), "return didn't match the expected output")
@@ -693,8 +694,9 @@ func TestClusterSpecEqual(t *testing.T) {
693694
for _, test := range tests {
694695
t.Run(test.name, func(t *testing.T) {
695696
spec1, _ := getClusterSpec()
696-
spec2, _ := getClusterSpec()
697697
test.modifySpec1(spec1)
698+
699+
spec2, _ := getClusterSpec()
698700
test.modifySpec2(spec2)
699701

700702
require.Equal(t, test.result, clusterSpecEqual(spec1, spec2), "return didn't match the expected output")

internal/resources/permissiontemplate/schema.go

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func buildCapabilityProviderDescription(schemaKey string) (description string) {
113113
for k, v := range capabilityProviderMap {
114114
valueDescription := fmt.Sprintf("When %s is set to '%s' %s must be set to '%s'.", ProviderKey, v, CapabilityKey, k)
115115
description = fmt.Sprintf("%s\n%s", description, valueDescription)
116+
116117
validValues = append(validValues, v)
117118
}
118119

internal/resources/tanzukubernetescluster/helper.go

+1
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ func removeModelVariable(clusterClassSchema interface{}, modelVariable interface
461461
} else {
462462
modelVarAdditionalProperties, additionalPropertiesExist := clusterClassSchema.(map[string]interface{})[string(openapiv3.AdditionalPropertiesKey)]
463463
preserve, preserveExists := clusterClassSchema.(map[string]interface{})[string(openapiv3.PreserveUnknownFieldKey)]
464+
464465
if additionalPropertiesExist {
465466
_, propertiesExist := modelVarAdditionalProperties.(map[string]interface{})[string(openapiv3.PropertiesKey)]
466467

0 commit comments

Comments
 (0)