From 645a6efaf25694a4aad085de2fd7e5e9eb17d435 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 10 Apr 2020 11:43:42 +0200 Subject: [PATCH] restorer: remove redundant type specification --- internal/restorer/filerestorer_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/restorer/filerestorer_test.go b/internal/restorer/filerestorer_test.go index a1b9b17f8..16fce6271 100644 --- a/internal/restorer/filerestorer_test.go +++ b/internal/restorer/filerestorer_test.go @@ -179,26 +179,26 @@ func TestFileRestorerBasic(t *testing.T) { defer cleanup() restoreAndVerify(t, tempdir, []TestFile{ - TestFile{ + { name: "file1", blobs: []TestBlob{ - TestBlob{"data1-1", "pack1-1"}, - TestBlob{"data1-2", "pack1-2"}, + {"data1-1", "pack1-1"}, + {"data1-2", "pack1-2"}, }, }, - TestFile{ + { name: "file2", blobs: []TestBlob{ - TestBlob{"data2-1", "pack2-1"}, - TestBlob{"data2-2", "pack2-2"}, + {"data2-1", "pack2-1"}, + {"data2-2", "pack2-2"}, }, }, - TestFile{ + { name: "file3", blobs: []TestBlob{ // same blob multiple times - TestBlob{"data3-1", "pack3-1"}, - TestBlob{"data3-1", "pack3-1"}, + {"data3-1", "pack3-1"}, + {"data3-1", "pack3-1"}, }, }, })