Skip to content

Commit

Permalink
hooktest
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Mar 5, 2024
1 parent afd3be4 commit d384320
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shared/client/src/eventtarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export default class EventTarget
if (this._eventCallbacks[which])
{
const idx = this._eventCallbacks[which].indexOf(cb);
if (idx === -1) return false;
return true;
return idx !== -1;
}
}
}
Expand Down

0 comments on commit d384320

Please sign in to comment.