From 7da139012f530f1aa299c8d50712c4dfb51a215e Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Thu, 11 Oct 2018 12:02:21 -0400 Subject: [PATCH] 4270 fix short circuiting of filter logic and improve comment --- .../commonfilesearch/CommonAttributeSearchResults.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java index 2dd2b3b77d..d1d13da176 100644 --- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java +++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonAttributeSearchResults.java @@ -161,7 +161,10 @@ final public class CommonAttributeSearchResults { toRemove.add(value); itemsToRemove.put(key, toRemove); } - break; //will be removed do not need to check + //value will be removed as the mime type existed and was not in the set to be included + //because value is removed this value does not need to be checked further + mimeTypeToRemove = true; + break; } } if (mimeTypeToRemove) {