From 2fb4c46691d362a2a2ef7715f6da39054ee72f28 Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Wed, 15 Feb 2023 15:50:42 +1100 Subject: [PATCH] S1021: should merge variable declaration with assignment on next line (gosimple) --- parseany_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parseany_test.go b/parseany_test.go index 2759fc8..5760e37 100644 --- a/parseany_test.go +++ b/parseany_test.go @@ -10,8 +10,7 @@ import ( func TestOne(t *testing.T) { time.Local = time.UTC - var ts time.Time - ts = MustParse("2020-07-20+08:00") + var ts time.Time = MustParse("2020-07-20+08:00") assert.Equal(t, "2020-07-19 16:00:00 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC))) }