Skip to content

Commit

Permalink
Merge pull request #29 from jaredwray/upgrading-xo-to-0.60.0
Browse files Browse the repository at this point in the history
upgrading xo to 0.60.0
  • Loading branch information
jaredwray authored Dec 22, 2024
2 parents 671a597 + f66f6f4 commit df006af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vitest": "^2.1.5",
"xo": "^0.59.3"
"xo": "^0.60.0"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion src/eventified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export class Eventified implements IEventEmitter {
public off(event: string | symbol, listener: EventListener): IEventEmitter {
const listeners = this._eventListeners.get(event) ?? [];
const index = listeners.indexOf(listener);
if (index > -1) {
if (index !== -1) {
listeners.splice(index, 1);
}

Expand Down

0 comments on commit df006af

Please sign in to comment.