Skip to content

Commit 1200b62

Browse files
committed
lint error fixd
1 parent 3d96d32 commit 1200b62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zhconv/reverse.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ func Reverse(str string) string {
5656
// Check for Half-width Katakana with Dakuten/Handakuten (2 runes sequence)
5757
if i+1 < n {
5858
nextChar := runes[i+1]
59-
if nextChar == '゙' {
59+
switch nextChar {
60+
case '゙':
6061
if zenkakuBase, ok := convTables.KANA_H2Z_DAKUTEN_MAP[char]; ok {
6162
sb.WriteRune(zenkakuBase)
6263
sb.WriteRune('゙')
6364
i += 2
6465
converted = true
6566
}
66-
} else if nextChar == '゚' {
67+
case '゚':
6768
if zenkakuBase, ok := convTables.KANA_H2Z_MARU_MAP[char]; ok {
6869
sb.WriteRune(zenkakuBase)
6970
sb.WriteRune('゚')

0 commit comments

Comments
 (0)