mirror of
https://github.com/araddon/dateparse.git
synced 2025-01-19 19:26:09 +08:00
SA4006: this value of err
is never used (staticcheck)
This commit is contained in:
parent
5143d47e3e
commit
57a1767ebd
@ -253,7 +253,7 @@ func parseTime(datestr string, loc *time.Location, opts ...ParserOption) (p *par
|
|||||||
// turn off the retry to avoid endless recursion
|
// turn off the retry to avoid endless recursion
|
||||||
retryAmbiguousDateWithSwap := RetryAmbiguousDateWithSwap(false)
|
retryAmbiguousDateWithSwap := RetryAmbiguousDateWithSwap(false)
|
||||||
modifiedOpts := append(opts, preferMonthFirst, retryAmbiguousDateWithSwap)
|
modifiedOpts := append(opts, preferMonthFirst, retryAmbiguousDateWithSwap)
|
||||||
p, err = parseTime(datestr, time.Local, modifiedOpts...)
|
p, _ = parseTime(datestr, time.Local, modifiedOpts...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user