Mike 2 роки тому
батько
коміт
83319d38ab
2 змінених файлів з 2 додано та 6 видалено
  1. 1 3
      wire/decode_test.go
  2. 1 3
      wire/encode_test.go

+ 1 - 3
wire/decode_test.go

@@ -156,9 +156,7 @@ func TestUnmarshal(t *testing.T) {
 			}{
 				Val: "",
 			},
-			given: append(
-				[]byte{0x0, 0x00}, /* len prefix */
-			),
+			given: []byte{0x0, 0x00}, /* len prefix */
 		},
 		{
 			name: "null-terminated string16 without null terminator",

+ 1 - 3
wire/encode_test.go

@@ -127,9 +127,7 @@ func TestMarshal(t *testing.T) {
 			}{
 				Val: "",
 			},
-			want: append(
-				[]byte{0x0, 0x0}, /* len prefix */
-			),
+			want: []byte{0x0, 0x0}, /* len prefix */
 		},
 		{
 			name: "string16 write error",