Skip to content

Commit

Permalink
refactor: Remove unnecessary call to Char.lowercaseChar
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed May 18, 2024
1 parent 616001f commit d9e0702
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class IdentifierChannel(private val channel: IdentifierAndKeywordChannel)
: Channel<LexerOutput> by channel {

override fun consume(code: CodeReader, output: LexerOutput): Boolean {
val nextChar = code.peek().toChar().lowercaseChar()
val nextChar = code.peek().toChar()
if (!nextChar.isLetter() && nextChar != '"') {
return false
}
Expand Down

0 comments on commit d9e0702

Please sign in to comment.