Do not loop through parents if nothing has been removed

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2022-04-13 22:37:54 +02:00
parent 57832351ea
commit 83baabcbba

View File

@ -126,6 +126,7 @@ final class TagHandlerImpl implements TagHandler {
{
Entry<?>[] finalEntries = pathHandlers[length - 1].entries;
if (finalEntries.length > tagIndex) finalEntries[tagIndex] = null;
else return;
}
// Clear empty parents
boolean empty = false;