From 57a1767ebd6d936dea7700633b1a9f977e17b984 Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Wed, 15 Feb 2023 15:51:48 +1100 Subject: [PATCH] SA4006: this value of `err` is never used (staticcheck) --- parseany.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parseany.go b/parseany.go index a37bec5..02074e3 100644 --- a/parseany.go +++ b/parseany.go @@ -253,7 +253,7 @@ func parseTime(datestr string, loc *time.Location, opts ...ParserOption) (p *par // turn off the retry to avoid endless recursion retryAmbiguousDateWithSwap := RetryAmbiguousDateWithSwap(false) modifiedOpts := append(opts, preferMonthFirst, retryAmbiguousDateWithSwap) - p, err = parseTime(datestr, time.Local, modifiedOpts...) + p, _ = parseTime(datestr, time.Local, modifiedOpts...) } }