Skip to content

Commit 8081ff4

Browse files
committed
minor optimizations
1 parent d78d27f commit 8081ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/orgzly/android/ui/notes/NoteContent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sealed class NoteContent {
2020

2121
companion object {
2222

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

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

0 commit comments

Comments
 (0)