breaking an if/else statement into multiple lines
This commit is contained in:
parent
457dbf57f4
commit
97436ba004
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue