e41c027c9a
Add "if return..." folding to "return if"
19 lines
323 B
Kotlin
Vendored
19 lines
323 B
Kotlin
Vendored
package test
|
|
|
|
import java.io.File
|
|
|
|
/**
|
|
* User: ignatov
|
|
*/
|
|
object Test {
|
|
fun isDir(parent: File?): Boolean {
|
|
if (parent == null || !parent.exists()) {
|
|
return false
|
|
}
|
|
val result = true
|
|
return if (parent.isDirectory) {
|
|
true
|
|
} else
|
|
false
|
|
}
|
|
} |