SA4006: this value of err is never used (staticcheck)

This commit is contained in:
Arran Ubels 2023-02-15 15:51:48 +11:00 committed by GitHub
parent 5143d47e3e
commit 57a1767ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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...)
} }
} }