diff --git a/src/db/ItemTypes.js b/src/db/ItemTypes.js index bddb7a8..b85e506 100644 --- a/src/db/ItemTypes.js +++ b/src/db/ItemTypes.js @@ -8,4 +8,4 @@ const ItemTypes = { Link: "link" }; -module.exports = ItemTypes; \ No newline at end of file +module.exports = ItemTypes; diff --git a/src/list/List.js b/src/list/List.js index 3facc7d..c283a36 100644 --- a/src/list/List.js +++ b/src/list/List.js @@ -61,7 +61,7 @@ class List { seq: this.seq, ver: this.ver, items: this._currentBatch.map((f) => f.asJson) - } + }; } /* Static methods */ diff --git a/src/list/Node.js b/src/list/Node.js index 5511048..c561ce9 100644 --- a/src/list/Node.js +++ b/src/list/Node.js @@ -18,16 +18,16 @@ class Node { } get asJson() { - return { id: this.id, seq: this.seq, ver: this.ver, data: this.data, next: this.next } + return { id: this.id, seq: this.seq, ver: this.ver, data: this.data, next: this.next }; } static equals(a, b) { - return a.id == b.id && a.seq == b.seq && a.ver == b.ver; + return a.id === b.id && a.seq === b.seq && a.ver === b.ver; } hasChild(a) { const id = a.compactId; - for(let i = 0; i < this.next.length; i ++) { + for(let i = 0; i < this.next.length; i++) { if(this.next[i] === id) return true; }