We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0601fc0 commit e568227Copy full SHA for e568227
src/testFixtures/kotlin/filetree.kt
@@ -72,11 +72,7 @@ private fun File.listDirectoryEntries(
72
private fun File.isEmptyDir(
73
matchers: PathGlobMatchers
74
): Boolean =
75
- if (isFile) {
76
- true
77
- } else {
78
- walk().filter { matchers.matches(it) }.none { it.isFile }
79
- }
+ isFile || walk().filter { matchers.matches(it) }.none { it.isFile }
80
81
82
private fun File.countDirectoryEntries(
0 commit comments