Remove one-line if expressions

This commit is contained in:
Andrii Chubko 2021-08-27 20:24:36 +03:00
parent a2faa7107f
commit 5e5576a0e0
2 changed files with 6 additions and 2 deletions

View File

@ -122,7 +122,9 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
}
override fun checkLockState() {
if (note == null) return
if (note == null) {
return
}
view.apply {
checklist_content_holder.beVisibleIf(!note!!.isLocked() || shouldShowLockedContent)

View File

@ -176,7 +176,9 @@ class TextFragment : NoteFragment() {
fun removeTextWatcher() = view.text_note_view.removeTextChangedListener(textWatcher)
override fun checkLockState() {
if (note == null) return
if (note == null) {
return
}
view.apply {
notes_counter.beVisibleIf((!note!!.isLocked() || shouldShowLockedContent) && config!!.showWordCount)