Skip to content

Commit

Permalink
Fix drop-invalid-mappings not dropping mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
IotaBread committed Jan 5, 2024
1 parent 2197f18 commit 6d20adb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public EntryMapping remove(Entry<?> entry) {
@Override
public EntryMapping get(Entry<?> entry) {
EntryMapping main = this.mainTree.get(entry);
if (main == null || main.equals(EntryMapping.DEFAULT)) {
if (main == null || (main.equals(EntryMapping.DEFAULT) && this.secondaryTree.contains(entry))) {
return this.secondaryTree.get(entry);
}

Expand Down

0 comments on commit 6d20adb

Please sign in to comment.