Linting
This commit is contained in:
parent
8eae770621
commit
8b7be48522
13 changed files with 37 additions and 28 deletions
|
|
@ -43,7 +43,7 @@ export class EventListeners<TListener extends (...args: any[]) => any> {
|
|||
const snapshot = this.listeners.slice();
|
||||
for (const listener of snapshot) {
|
||||
// allow removing listeners during the trigger loop
|
||||
if (!this.listeners.includes(listener)) continue;
|
||||
if (!this.listeners.includes(listener)) {continue;}
|
||||
listener(...args);
|
||||
}
|
||||
}
|
||||
|
|
@ -59,7 +59,7 @@ export class EventListeners<TListener extends (...args: any[]) => any> {
|
|||
const snapshot = this.listeners.slice();
|
||||
const promises: Promise<unknown>[] = [];
|
||||
for (const listener of snapshot) {
|
||||
if (!this.listeners.includes(listener)) continue;
|
||||
if (!this.listeners.includes(listener)) {continue;}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const result = listener(...args);
|
||||
if (result instanceof Promise) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue