From 5143d47e3e263c4fee712bf3cb87cd54edbe0298 Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Wed, 15 Feb 2023 15:51:14 +1100 Subject: [PATCH] S1023: redundant break statement (gosimple) --- parseany.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/parseany.go b/parseany.go index f20e8fd..a37bec5 100644 --- a/parseany.go +++ b/parseany.go @@ -1442,7 +1442,6 @@ iterRunes: if datestr[i-1] == 'm' { p.extra = i - 2 p.trimExtra() - break } case '+', '-', '(': // This really doesn't seem valid, but for some reason when round-tripping a go date @@ -1452,7 +1451,6 @@ iterRunes: p.extra = i - 1 p.stateTime = timeWsOffset p.trimExtra() - break default: switch { case unicode.IsDigit(r):