Skip to content

Commit 3c7cef5

Browse files
author
jiangdong
committed
fix by codereview
Signed-off-by: jiangdong <[email protected]>
1 parent b0d2fd2 commit 3c7cef5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ linters:
7979
modernize:
8080
disable:
8181
- omitzero
82+
- fmtappendf
8283
revive:
8384
rules:
8485
# The following rules are recommended https://github.com/mgechev/revive#recommended-configuration

pkg/client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4133,7 +4133,7 @@ var _ = Describe("Patch", func() {
41334133
Expect(err).NotTo(HaveOccurred())
41344134

41354135
By("returning a patch with data only containing the annotation change")
4136-
Expect(data).To(Equal(fmt.Appendf(nil, `{"metadata":{"annotations":{"%s":"%s"}}}`, annotationKey, annotationValue)))
4136+
Expect(data).To(Equal([]byte(fmt.Sprintf(`{"metadata":{"annotations":{"%s":"%s"}}}`, annotationKey, annotationValue))))
41374137
})
41384138

41394139
It("creates a merge patch with the modifications applied during the mutation, using optimistic locking", func() {

0 commit comments

Comments
 (0)