From 943487fae810af98fe893e65d7b96d6f64db69cf Mon Sep 17 00:00:00 2001 From: Beatriz Vieira Date: Thu, 27 Aug 2020 22:30:56 -0300 Subject: [PATCH] refact: remove redundant type from slice --- sv/git_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv/git_test.go b/sv/git_test.go index 7b96394..8771d57 100644 --- a/sv/git_test.go +++ b/sv/git_test.go @@ -13,8 +13,8 @@ func Test_parseTagsOutput(t *testing.T) { want []GitTag wantErr bool }{ - {"with date", "2020-05-01 18:00:00 -0300#1.0.0", []GitTag{GitTag{Name: "1.0.0", Date: date("2020-05-01 18:00:00 -0300")}}, false}, - {"without date", "#1.0.0", []GitTag{GitTag{Name: "1.0.0", Date: time.Time{}}}, false}, + {"with date", "2020-05-01 18:00:00 -0300#1.0.0", []GitTag{{Name: "1.0.0", Date: date("2020-05-01 18:00:00 -0300")}}, false}, + {"without date", "#1.0.0", []GitTag{{Name: "1.0.0", Date: time.Time{}}}, false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {