Skip to content

Commit 8baa62b

Browse files
committed
gosimple in stringstyle_formatter
1 parent c7eecb1 commit 8baa62b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

stringstyle_formatter.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@ func SetStyle(text *string, style FormattingStyle, firstSymbol CaseSetting, text
6868
switch style {
6969
case Kebab:
7070
sb.WriteString("-")
71-
break
7271
case Snake:
7372
sb.WriteString("_")
74-
break
7573
case Camel:
7674
// in case of convert to Camel we should skip v.Index (because it is _ or -)
7775
if v.Style == Camel {
@@ -80,7 +78,6 @@ func SetStyle(text *string, style FormattingStyle, firstSymbol CaseSetting, text
8078
sb.WriteRune(unicode.ToUpper(rune((*text)[endIndex+1])))
8179
}
8280
startIndex += 1
83-
break
8481
}
8582
if v.Style != Camel {
8683
startIndex += 1

0 commit comments

Comments
 (0)