Skip to content

Commit aaab0e3

Browse files
committed
chore: lint
1 parent 6616333 commit aaab0e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/controller/metalstackcluster_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var _ = Describe("MetalStackCluster Controller", func() {
7070

7171
Context("without owning cluster resource", func() {
7272
BeforeEach(func() {
73-
resource.ObjectMeta.OwnerReferences = nil
73+
resource.OwnerReferences = nil
7474
})
7575

7676
It("should skip reconciles", func() {

test/utils/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"os/exec"
2525
"strings"
2626

27-
. "github.com/onsi/ginkgo/v2" //nolint:golint,revive
27+
. "github.com/onsi/ginkgo/v2" //nolint:golint,staticcheck
2828
)
2929

3030
const (
@@ -197,7 +197,7 @@ func GetProjectDir() (string, error) {
197197
if err != nil {
198198
return wd, err
199199
}
200-
wd = strings.Replace(wd, "/test/e2e", "", -1)
200+
wd = strings.ReplaceAll(wd, "/test/e2e", "")
201201
return wd, nil
202202
}
203203

0 commit comments

Comments
 (0)