Skip to content

Commit

Permalink
Merge pull request #123 from vanniktech/patch-1
Browse files Browse the repository at this point in the history
Inline const variable in ParseStateMachine
  • Loading branch information
doyaaaaaken authored May 17, 2023
2 parents e078e8a + eb9cc57 commit bab774a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ internal class ParseStateMachine(
private val escapeChar: Char
) {

private val BOM = Const.BOM

private var state = ParseState.START

private val fields = ArrayList<String>()
Expand All @@ -32,7 +30,7 @@ internal class ParseStateMachine(
when (state) {
ParseState.START -> {
when (ch) {
BOM -> Unit
Const.BOM -> Unit
quoteChar -> state = ParseState.QUOTE_START
delimiter -> {
flushField()
Expand Down

0 comments on commit bab774a

Please sign in to comment.