Browse Source

Minor change following review

Jake Smith 12 years ago
parent
commit
90119c84ab
1 changed files with 4 additions and 10 deletions
  1. 4 10
      dali/base/dadfs.cpp

+ 4 - 10
dali/base/dadfs.cpp

@@ -1423,17 +1423,11 @@ private:
         dflist.append(*file);
         // Also add subfiles to cache
         IDistributedSuperFile * sfile = file->querySuperFile();
-        if (sfile) {
+        if (sfile)
+        {
             Owned<IDistributedFileIterator> iter = sfile->getSubFileIterator();
-            ForEach(*iter) {
-                IDistributedFile *f = &iter->query();
-                if (f->querySuperFile()) {
-                    addFileToCache(f);
-                } else {
-                    f->Link();
-                    dflist.append(*f);
-                }
-            }
+            ForEach(*iter)
+                addFileToCache(&iter->query());
         }
     }
 };