Remove needless null check in OpenNoteAdapter

This commit is contained in:
Ensar Sarajčić 2023-07-26 12:52:37 +02:00
parent 68991ce1cd
commit 48d0919245

View File

@ -84,7 +84,7 @@ class OpenNoteAdapter(
ChecklistItem.sorting = sorting
if (ChecklistItem.sorting and SORT_BY_CUSTOM == 0) {
it.sorted().let {
if (context.config?.moveDoneChecklistItems == true) {
if (context.config.moveDoneChecklistItems) {
it.sortedBy { it.isDone }
} else {
it