lint: ignore err from Time.parse which can not happen more idiomatically

This commit is contained in:
Kjetil Torgrim Homme 2025-01-14 01:42:31 +01:00
parent ff681b84f0
commit 96cdc02d66
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ func TestPastTime(t *testing.T) {
if err != nil {
t.Fatal(err)
}
reftime, err := time.Parse(time.DateTime, "1999-12-30 15:16:17")
reftime, _ := time.Parse(time.DateTime, "1999-12-30 15:16:17")
expected := "1998-10-27 11:16:17"
result := d.PastTime(reftime).Format(time.DateTime)
if result != expected {