breaking an if/else statement into multiple lines
This commit is contained in:
parent
457dbf57f4
commit
97436ba004
1 changed files with 6 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue