koltin beta 5093 compatibility — cleanup

This commit is contained in:
Vladimir Krivosheev
2015-12-24 16:07:27 +01:00
parent 07f892f1b3
commit 9a6b71244f
@@ -234,7 +234,7 @@ public fun Repository.deleteAllFiles(deletedSet: MutableSet<String>? = null, fro
}
if (fromWorkingTree) {
val files = workTree.listFiles { it.name != Constants.DOT_GIT }
val files = workTree.listFiles { file -> file.name != Constants.DOT_GIT }
if (files != null) {
for (file in files) {
FileUtil.delete(file)