S1023: redundant break statement (gosimple)

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

View File

@ -1442,7 +1442,6 @@ iterRunes:
if datestr[i-1] == 'm' { if datestr[i-1] == 'm' {
p.extra = i - 2 p.extra = i - 2
p.trimExtra() p.trimExtra()
break
} }
case '+', '-', '(': case '+', '-', '(':
// This really doesn't seem valid, but for some reason when round-tripping a go date // 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.extra = i - 1
p.stateTime = timeWsOffset p.stateTime = timeWsOffset
p.trimExtra() p.trimExtra()
break
default: default:
switch { switch {
case unicode.IsDigit(r): case unicode.IsDigit(r):