fix: remove unnecessary async modifiers
This commit is contained in:
@@ -29,8 +29,8 @@ export class Editor {
|
|||||||
private streamItems() {
|
private streamItems() {
|
||||||
this.removeStreamObserver = this.application.streamItems(
|
this.removeStreamObserver = this.application.streamItems(
|
||||||
ContentType.Note,
|
ContentType.Note,
|
||||||
async (items, source) => {
|
(items, source) => {
|
||||||
await this.handleNoteStream(items as SNNote[], source);
|
this.handleNoteStream(items as SNNote[], source);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ export class Editor {
|
|||||||
this._onNoteValueChange = undefined;
|
this._onNoteValueChange = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async handleNoteStream(notes: SNNote[], source?: PayloadSource) {
|
private handleNoteStream(notes: SNNote[], source?: PayloadSource) {
|
||||||
/** Update our note object reference whenever it changes */
|
/** Update our note object reference whenever it changes */
|
||||||
const matchingNote = notes.find((item) => {
|
const matchingNote = notes.find((item) => {
|
||||||
return item.uuid === this.note.uuid;
|
return item.uuid === this.note.uuid;
|
||||||
|
|||||||
Reference in New Issue
Block a user