fix: remove unnecessary async modifiers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user