Skip to content

Commit

Permalink
fix(background/events): don't throw on calling once() (#372)
Browse files Browse the repository at this point in the history
* fix(background/events): don't throw on calling `once()`

* nit: inline return
  • Loading branch information
sidvishnoi authored Jun 26, 2024
1 parent ecc81a1 commit e72ede5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/background/services/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class EventsService extends EventEmitter {
* @deprecated
*/
removeListener(): this {
throw new Error('Use `off` instead of `removeListener`.')
// eslint-disable-next-line prefer-rest-params
return super.removeListener.apply(this, arguments)
}
}

0 comments on commit e72ede5

Please sign in to comment.