Skip to content

Commit

Permalink
minor optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
artbristol committed Feb 16, 2021
1 parent d78d27f commit 8081ff4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sealed class NoteContent {

companion object {

private fun lineIsTable(raw: String) = raw.length > 0 && raw.get(0) == '|'
private fun lineIsTable(raw: String) = raw.isNotEmpty() && raw[0] == '|'

/**
* Converts the provided raw string (with embedded newlines) into a list of sections of
Expand Down

0 comments on commit 8081ff4

Please sign in to comment.