Skip to content

Commit

Permalink
Omitting undefined method call warning (ui-#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
divanc committed Jan 30, 2024
1 parent 4c3a988 commit 16f24f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/native-request-handler/native-request-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class NativeRequestHandler<
}

removeAllEventListeners(): void {
this._listeners.forEach(listener => listener.remove());
this._listeners.clear();
this._listeners?.forEach(listener => listener.remove());
this._listeners?.clear();
}
}

0 comments on commit 16f24f0

Please sign in to comment.