From 4660c154e9efa43ea43c302b9e03632e87743104 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 24 Oct 2023 23:10:52 +0200 Subject: [PATCH] refactor --- src/services/search/note_set.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/services/search/note_set.js b/src/services/search/note_set.js index 116c8eae2..82c236cf6 100644 --- a/src/services/search/note_set.js +++ b/src/services/search/note_set.js @@ -31,12 +31,7 @@ class NoteSet { } mergeIn(anotherNoteSet) { - for (const note of anotherNoteSet.notes) { - if (!this.noteIdSet.has(note.noteId)) { - this.noteIdSet.add(note.noteId); - this.notes.push(note); - } - } + this.addAll(anotherNoteSet.notes); } minus(anotherNoteSet) {