Skip to content

Commit ac872de

Browse files
committed
review revisions
Signed-off-by: Jordan Keister <[email protected]>
1 parent 92f5b29 commit ac872de

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ linters:
2424
- errorlint
2525
- gci
2626
- gofmt
27+
- govet
2728
- gosec
2829
- importas
2930
- misspell

alpha/action/migrate_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func TestMigrate(t *testing.T) {
125125
return
126126
}
127127
actualFS := os.DirFS(s.migrate.OutputDir)
128-
_ = fs.WalkDir(actualFS, ".", func(path string, d fs.DirEntry, err error) error {
128+
require.NoError(t, fs.WalkDir(actualFS, ".", func(path string, d fs.DirEntry, err error) error {
129129
require.NoError(t, err)
130130
if d.IsDir() {
131131
return nil
@@ -136,7 +136,7 @@ func TestMigrate(t *testing.T) {
136136
require.True(t, ok, "output directory contained unexpected file %q", path)
137137
require.Equal(t, expectedData, string(actualData))
138138
return nil
139-
})
139+
}))
140140
})
141141
}
142142
}

test/e2e/bundle_image_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func pushLoadImages(client *kubernetes.Clientset, w io.Writer, images ...string)
276276
}
277277
} else {
278278
for _, image := range images {
279-
err = pushWith("docker", image)
279+
err := pushWith("docker", image)
280280
if err != nil {
281281
return err
282282
}

0 commit comments

Comments
 (0)