mirror of
https://github.com/araddon/dateparse.git
synced 2025-09-17 20:20:23 +08:00
S1021: should merge variable declaration with assignment on next line (gosimple)
This commit is contained in:
@@ -10,8 +10,7 @@ import (
|
|||||||
|
|
||||||
func TestOne(t *testing.T) {
|
func TestOne(t *testing.T) {
|
||||||
time.Local = time.UTC
|
time.Local = time.UTC
|
||||||
var ts time.Time
|
var ts time.Time = MustParse("2020-07-20+08:00")
|
||||||
ts = MustParse("2020-07-20+08:00")
|
|
||||||
assert.Equal(t, "2020-07-19 16:00:00 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC)))
|
assert.Equal(t, "2020-07-19 16:00:00 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user