Skip to content

Commit bb0a299

Browse files
committed
fix: modernize
1 parent 71b3db5 commit bb0a299

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/gocacheprog/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
// makeActionEntry builds a 175-byte Go cache action entry.
1212
func makeActionEntry(actionHex, outputHex string, size, tsNano int64) []byte {
13-
return []byte(fmt.Sprintf("v1 %s %s %20d %20d\n", actionHex, outputHex, size, tsNano))
13+
return fmt.Appendf(nil, "v1 %s %s %20d %20d\n", actionHex, outputHex, size, tsNano)
1414
}
1515

1616
func Test_handleGet_Hit(t *testing.T) {

0 commit comments

Comments
 (0)