breaking an if/else statement into multiple lines

This commit is contained in:
tibbi 2020-03-04 14:44:27 +01:00
parent 457dbf57f4
commit 97436ba004
1 changed files with 6 additions and 1 deletions

View File

@ -32,7 +32,12 @@ fun String.shouldFolderBeVisible(excludedPaths: MutableSet<String>, includedPath
return true
}
val containsNoMedia = if (showHidden) false else File(this, NOMEDIA).exists()
val containsNoMedia = if (showHidden) {
false
} else {
File(this, NOMEDIA).exists()
}
return if (!showHidden && containsNoMedia) {
false
} else if (excludedPaths.contains(this)) {