4270 fix short circuiting of filter logic and improve comment

This commit is contained in:
William Schaefer 2018-10-11 12:02:21 -04:00
parent b57ae90534
commit 7da139012f

View File

@ -161,7 +161,10 @@ final public class CommonAttributeSearchResults {
toRemove.add(value); toRemove.add(value);
itemsToRemove.put(key, toRemove); 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) { if (mimeTypeToRemove) {