Skip to content

Commit

Permalink
Remove redundant if statement (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambujsahu81 authored Dec 27, 2022
1 parent e412983 commit bc232e6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ function editLedger(
?? new WeakMap<DelegateEventHandler, Set<string>>();
ledger.set(baseElement, elementMap);

if (!wanted && !ledger.has(baseElement)) {
return false;
}

const setups = elementMap.get(callback) ?? new Set<string>();
elementMap.set(callback, setups);

Expand Down

0 comments on commit bc232e6

Please sign in to comment.