mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
refactor
This commit is contained in:
parent
bacae67374
commit
4660c154e9
@ -31,12 +31,7 @@ class NoteSet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mergeIn(anotherNoteSet) {
|
mergeIn(anotherNoteSet) {
|
||||||
for (const note of anotherNoteSet.notes) {
|
this.addAll(anotherNoteSet.notes);
|
||||||
if (!this.noteIdSet.has(note.noteId)) {
|
|
||||||
this.noteIdSet.add(note.noteId);
|
|
||||||
this.notes.push(note);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
minus(anotherNoteSet) {
|
minus(anotherNoteSet) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user