From 0b23711422fed7e13db8b5de6d004771c50ac8ee Mon Sep 17 00:00:00 2001 From: yutaroyamanaka Date: Mon, 16 Oct 2023 21:04:49 +0900 Subject: [PATCH] use assert.NoError to handle linter error --- api/resmap/reswrangler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/resmap/reswrangler_test.go b/api/resmap/reswrangler_test.go index bcf51a7980..0ea6b327a3 100644 --- a/api/resmap/reswrangler_test.go +++ b/api/resmap/reswrangler_test.go @@ -904,7 +904,7 @@ func TestAbsorbAll(t *testing.T) { assert.NoError(t, w.AbsorbAll(w2)) expected = makeMap2(types.BehaviorUnspecified) expected.RemoveBuildAnnotations() - expected.AnnotateAll(utils.BuildAnnotationsGenAddHashSuffix, "enabled") + assert.NoError(t, expected.AnnotateAll(utils.BuildAnnotationsGenAddHashSuffix, "enabled")) assert.NoError(t, w.ErrorIfNotEqualLists(expected)) }