Skip to content

Commit

Permalink
rectify lint err
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvajagtap committed May 3, 2024
1 parent a3a1b7e commit 98c4cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Verify OLM bundle
run: make verify-bundle
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v2
with:
args: --timeout=10m
e2e:
Expand Down
4 changes: 2 additions & 2 deletions pkg/common/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func TestTruncateCRDFieldTransformer(t *testing.T) {
- tst
`
u := &unstructured.Unstructured{}
yaml.Unmarshal([]byte(crdYaml), &u.Object)
TruncateCRDFieldTransformer("description", 10)(u)
_ = yaml.Unmarshal([]byte(crdYaml), &u.Object)
_ = TruncateCRDFieldTransformer("description", 10)(u)

isDscriptionTruncated := CheckNestedFieldLengthWithinLimit(u.Object, 10, "description")
Expect(isDscriptionTruncated).To(Equal(true))
Expand Down

0 comments on commit 98c4cb1

Please sign in to comment.