Remove redundant type declaration

Signed-off-by: andig <cpuidle@gmx.de>
pull/6971/head
andig 2022-12-12 15:33:48 +01:00 committed by Brad Fitzpatrick
parent 72cc70ebfc
commit 5f96d6211a
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ func TestAllocs(t *testing.T) {
ftun, tun := newFakeTUN(t.Logf, false)
defer tun.Close()
buf := [][]byte{[]byte{0x00}}
buf := [][]byte{{0x00}}
err := tstest.MinAllocsPerRun(t, 0, func() {
_, err := ftun.Write(buf, 0)
if err != nil {