Skip to content

Commit 5e5576a

Browse files
author
Andrii Chubko
committed
Remove one-line if expressions
1 parent a2faa71 commit 5e5576a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/ChecklistFragment.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
122122
}
123123

124124
override fun checkLockState() {
125-
if (note == null) return
125+
if (note == null) {
126+
return
127+
}
126128

127129
view.apply {
128130
checklist_content_holder.beVisibleIf(!note!!.isLocked() || shouldShowLockedContent)

app/src/main/kotlin/com/simplemobiletools/notes/pro/fragments/TextFragment.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ class TextFragment : NoteFragment() {
176176
fun removeTextWatcher() = view.text_note_view.removeTextChangedListener(textWatcher)
177177

178178
override fun checkLockState() {
179-
if (note == null) return
179+
if (note == null) {
180+
return
181+
}
180182

181183
view.apply {
182184
notes_counter.beVisibleIf((!note!!.isLocked() || shouldShowLockedContent) && config!!.showWordCount)

0 commit comments

Comments
 (0)