#2322 removed bang operator

This commit is contained in:
gouri-panda 2020-09-07 15:02:29 +05:30
parent 3e1b49e92f
commit 85ea2da4ec

View File

@ -149,7 +149,7 @@ class AddNoteDialog : DialogFragment() {
} else {
noteFileName = getTextAfterLastSlashWithoutExtension(articleUrl)
}
return (if (noteFileName.isNotEmpty()) noteFileName else articleTitle)!!
return (if (noteFileName.isNotEmpty()) noteFileName else articleTitle) ?: ""
}
/* From ".../Kiwix/granbluefantasy_en_all_all_nopic_2018-10.zim", returns "granbluefantasy_en_all_all_nopic_2018-10"