Update linter

This commit is contained in:
Thomas Nordquist
2020-04-16 10:56:46 +02:00
parent 19e8bfdb37
commit 30af13f793
53 changed files with 92 additions and 97 deletions

View File

@@ -26,13 +26,13 @@ export class EventDispatcher<Message> {
}
public unsubscribe(callback: (msg: Message) => void) {
const item = this.callbacks.find((store) => store.callback === callback)
const item = this.callbacks.find(store => store.callback === callback)
if (!item) {
return
}
this.emitter.removeListener('event', item.wrappedCallback)
this.callbacks = this.callbacks.filter((a) => a !== item)
this.callbacks = this.callbacks.filter(a => a !== item)
}
public removeAllListeners() {