Skip to content

Commit 3c311fd

Browse files
committed
make fix-golangci-lint
Signed-off-by: Erik Godding Boye <[email protected]>
1 parent f44aee0 commit 3c311fd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ linters:
1414
paths: [third_party, builtin$, examples$]
1515
warn-unused: true
1616
settings:
17+
modernize:
18+
disable:
19+
# TODO(erikgb): Enable when we know how to do this correctly in API types
20+
- omitzero
1721
staticcheck:
1822
checks: ["all", "-ST1000", "-ST1001", "-ST1003", "-ST1005", "-ST1012", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-QF1001", "-QF1003", "-QF1008"]
1923
enable:

test/e2e/framework/helper/helper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ func (h *Helper) WaitForUnstructuredReady(dr dynamic.NamespaceableResourceInterf
131131
if !found {
132132
return false, nil
133133
}
134-
conditions, ok := status["conditions"].([]interface{})
134+
conditions, ok := status["conditions"].([]any)
135135
if !ok {
136136
return false, errors.New(".status.conditions is not []interface{}")
137137
}
138138
for _, c := range conditions {
139-
cond, ok := c.(map[string]interface{})
139+
cond, ok := c.(map[string]any)
140140
if !ok {
141141
return false, errors.New(".status.conditions doesn't contain a map")
142142
}

0 commit comments

Comments
 (0)