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

View file

@ -32,7 +32,12 @@ fun String.shouldFolderBeVisible(excludedPaths: MutableSet<String>, includedPath
return true 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) { return if (!showHidden && containsNoMedia) {
false false
} else if (excludedPaths.contains(this)) { } else if (excludedPaths.contains(this)) {