diff --git a/lib/versioned-map.ts b/lib/versioned-map.ts index 5773933..a4ad95b 100644 --- a/lib/versioned-map.ts +++ b/lib/versioned-map.ts @@ -168,6 +168,7 @@ export default class VersionedMap { public *diff(): IterableIterator<[K, V, V]> { for (const [key, revisions] of this.map) { + if (revisions.length === 1) continue; let first = revisions[0]; let last = revisions[revisions.length - 1]; if (first === NONEXISTENT && last === NONEXISTENT) continue;