From 5f96d6211a040b7d5cd843b589411be91b3ba6fc Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 12 Dec 2022 15:33:48 +0100 Subject: [PATCH] Remove redundant type declaration Signed-off-by: andig --- net/tstun/wrap_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/tstun/wrap_test.go b/net/tstun/wrap_test.go index 86fbd6078..f616ebebe 100644 --- a/net/tstun/wrap_test.go +++ b/net/tstun/wrap_test.go @@ -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 {