Skip to content

Commit

Permalink
fix: remove unnecessary async modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Sep 11, 2020
1 parent 65108fb commit 80d6248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/ui_models/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export class Editor {
private streamItems() {
this.removeStreamObserver = this.application.streamItems(
ContentType.Note,
async (items, source) => {
await this.handleNoteStream(items as SNNote[], source);
(items, source) => {
this.handleNoteStream(items as SNNote[], source);
}
);
}
Expand All @@ -44,7 +44,7 @@ export class Editor {
this._onNoteValueChange = undefined;
}

private async handleNoteStream(notes: SNNote[], source?: PayloadSource) {
private handleNoteStream(notes: SNNote[], source?: PayloadSource) {
/** Update our note object reference whenever it changes */
const matchingNote = notes.find((item) => {
return item.uuid === this.note.uuid;
Expand Down

0 comments on commit 80d6248

Please sign in to comment.