Skip to content

Commit

Permalink
fix go vet error
Browse files Browse the repository at this point in the history
  • Loading branch information
mk6i committed Aug 2, 2024
1 parent 835c383 commit 83319d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions wire/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions wire/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 83319d3

Please sign in to comment.