Skip to content

Commit c9df969

Browse files
committed
Fix Kotlin warning message "'when' is exhaustive so 'else' is redundant here."
1 parent b679fcc commit c9df969

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/kotlin/org/bsplines/ltexls/server/NonServerChecker.kt

-2
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,12 @@ class NonServerChecker {
141141
RuleMatch.Type.UnknownWord -> Color.RED
142142
RuleMatch.Type.Hint -> Color.BLUE
143143
RuleMatch.Type.Other -> Color.YELLOW
144-
else -> Color.BLUE
145144
}
146145
var typeString: String =
147146
when (match.type) {
148147
RuleMatch.Type.UnknownWord -> "spelling"
149148
RuleMatch.Type.Hint -> "style"
150149
RuleMatch.Type.Other -> "grammar"
151-
else -> "style"
152150
}
153151

154152
if (match.isUnknownWordRule()) {

0 commit comments

Comments
 (0)