Skip to content

Commit

Permalink
chore: fix linter failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Jan 21, 2022
1 parent 64e1519 commit df4661a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/object/infos.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func UnstructuredToInfo(obj *unstructured.Unstructured) (*resource.Info, error)
// kyaml adds both annotations for the time being, so we need to remove them both
// before apply.
delete(annos, kioutil.PathAnnotation)
delete(annos, kioutil.LegacyPathAnnotation)
delete(annos, kioutil.LegacyPathAnnotation) //nolint:staticcheck
obj.SetAnnotations(annos)
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/object/infos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestUnstructuredToInfo(t *testing.T) {
"name": "foo",
"annotations": map[string]interface{}{
kioutil.PathAnnotation: "deployment.yaml",
kioutil.LegacyPathAnnotation: "deployment.yaml",
kioutil.LegacyPathAnnotation: "deployment.yaml", //nolint:staticcheck
},
},
},
Expand Down Expand Up @@ -87,7 +87,7 @@ func TestUnstructuredToInfo(t *testing.T) {
}

if found {
for _, a := range []kioutil.AnnotationKey{kioutil.PathAnnotation, kioutil.LegacyPathAnnotation} {
for _, a := range []kioutil.AnnotationKey{kioutil.PathAnnotation, kioutil.LegacyPathAnnotation} { //nolint:staticcheck
_, hasAnnotation := annos[a]
assert.False(t, hasAnnotation, "did not expect %s", a)
}
Expand Down

0 comments on commit df4661a

Please sign in to comment.