Skip to content

Commit

Permalink
chore: upgrade ktlint to 0.49.1
Browse files Browse the repository at this point in the history
Fix ktlint error by remove dead code.

rule: standard:comment-wrapping
A block comment in between other elements on the same line is disallowed
  • Loading branch information
Bambooin committed Jul 8, 2023
1 parent e7ca43d commit 809977a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Expand Up @@ -280,14 +280,7 @@ class TextInputManager private constructor() :
val key = option.substring(5)
onEvent(Event(key))
shouldUpdateRimeOption = true
} /*else if (option.startsWith("_one_hand_mode")) {
*//*
val c = option[option.length - 1]
if (c == '1' && value) oneHandMode = 1 else if (c == '2' && value) oneHandMode =
2 else if (c == '3') oneHandMode = if (value) 1 else 2 else oneHandMode = 0
trime.loadBackground()
trime.initKeyboard() *//*
}*/
}
}
mainKeyboardView?.invalidateAllKeys()
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Expand Up @@ -23,7 +23,7 @@ spotless {
}
kotlin {
target("app/src/main/java/com/osfans/trime/**/*.kt")
ktlint("0.48.2")
ktlint("0.49.1")
trimTrailingWhitespace()
indentWithSpaces()
endWithNewline()
Expand Down

0 comments on commit 809977a

Please sign in to comment.