From dd7b397ae5ffbd9f783f5ae0ee304c4b28916f2f Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Tue, 19 Sep 2017 14:40:25 -0400 Subject: [PATCH] Remove redundant check --- brut.j.dir/src/main/java/brut/directory/ZipRODirectory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/brut.j.dir/src/main/java/brut/directory/ZipRODirectory.java b/brut.j.dir/src/main/java/brut/directory/ZipRODirectory.java index be356342..9b9522cb 100644 --- a/brut.j.dir/src/main/java/brut/directory/ZipRODirectory.java +++ b/brut.j.dir/src/main/java/brut/directory/ZipRODirectory.java @@ -136,8 +136,7 @@ public class ZipRODirectory extends AbstractDirectory { subname = subname.substring(0, pos); } - boolean pointsToParentDirectory = (subname.equals("..") && prefixLen == 0); - if (! mDirs.containsKey(subname) && ! pointsToParentDirectory) { + if (! mDirs.containsKey(subname)) { AbstractDirectory dir = new ZipRODirectory(getZipFile(), getPath() + subname + separator); mDirs.put(subname, dir); }