optimization [approved by Jeka]

This commit is contained in:
nik
2012-11-21 17:32:43 +04:00
parent 2114d7c83d
commit b4e7ef0ae3
@@ -176,6 +176,8 @@ public class FSOperations {
}
public static void pruneEmptyDirs(CompileContext context, @Nullable final Set<File> dirsToDelete) {
if (dirsToDelete == null || dirsToDelete.isEmpty()) return;
Set<File> doNotDelete = ALL_OUTPUTS_KEY.get(context);
if (doNotDelete == null) {
doNotDelete = new THashSet<File>(FileUtil.FILE_HASHING_STRATEGY);