Skip to content

Commit

Permalink
version 0 should not be special cases anymore (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh authored Jun 13, 2024
1 parent 063de54 commit ec04c07
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ module.exports = class WakeupExtension {

for (const w of this.base.activeWriters) {
if (w.isIndexer || w.flushed()) continue

const value = version === 0
? w.core.key
: { key: w.core.key, length: w.length }

writers.push(value)
writers.push({ key: w.core.key, length: w.length })
}

if (!writers.length) return null
Expand Down

0 comments on commit ec04c07

Please sign in to comment.