mirror of
https://github.com/araddon/dateparse.git
synced 2025-01-19 19:26:09 +08:00
S1021: should merge variable declaration with assignment on next line (gosimple)
This commit is contained in:
parent
14cb70eacb
commit
2fb4c46691
@ -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)))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user