Skip to content

Commit

Permalink
Copy pasta fail
Browse files Browse the repository at this point in the history
  • Loading branch information
David A. Symons committed May 20, 2022
1 parent c6d8416 commit 381fe9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/json_encode_bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func JSONEncodeBytes(b []byte) (*apiextensionsv1.JSON, error) {
func MustJSONEncodeBytes(t *testing.T, b []byte) *apiextensionsv1.JSON {
data, err := json.Marshal(string(b))
if err != nil {
t.Errorf("could not encode bytes to json: %s", err))
t.Errorf("could not encode bytes to json: %s", err)
}
return &apiextensionsv1.JSON{Raw: data}
}

0 comments on commit 381fe9c

Please sign in to comment.