Skip to content

Commit c43e62e

Browse files
authored
Merge pull request #2732 from mtrmac/cleanups
Microoptimize an API use per gopls modernize
2 parents 67693bb + 08ac56d commit c43e62e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/manifest/common_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestValidateUnambiguousManifestFormat(t *testing.T) {
5353

5454
// Every single field is allowed by its bit, and rejected by any other bit
5555
for bit, fieldName := range fields {
56-
json := []byte(fmt.Sprintf(`{"%s":[]}`, fieldName))
56+
json := fmt.Appendf(nil, `{"%s":[]}`, fieldName)
5757
err := ValidateUnambiguousManifestFormat(json, mt, bit)
5858
assert.NoError(t, err, fieldName)
5959
err = ValidateUnambiguousManifestFormat(json, mt, allAllowedFields^bit)

0 commit comments

Comments
 (0)