Remove redundant check

This commit is contained in:
Connor Tumbleson 2017-09-19 14:40:25 -04:00
parent a0ae7eaea8
commit dd7b397ae5

View File

@ -136,8 +136,7 @@ public class ZipRODirectory extends AbstractDirectory {
subname = subname.substring(0, pos); subname = subname.substring(0, pos);
} }
boolean pointsToParentDirectory = (subname.equals("..") && prefixLen == 0); if (! mDirs.containsKey(subname)) {
if (! mDirs.containsKey(subname) && ! pointsToParentDirectory) {
AbstractDirectory dir = new ZipRODirectory(getZipFile(), getPath() + subname + separator); AbstractDirectory dir = new ZipRODirectory(getZipFile(), getPath() + subname + separator);
mDirs.put(subname, dir); mDirs.put(subname, dir);
} }