mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-24 12:30:07 +01:00
Remove one-line if expressions
This commit is contained in:
parent
a2faa7107f
commit
5e5576a0e0
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user