Skip to content

Commit

Permalink
Revert "temporary workaround for Level/abstract-leveldown#318"
Browse files Browse the repository at this point in the history
This reverts commit 2d62675.
  • Loading branch information
vweevers committed Dec 27, 2018
1 parent 6e239ed commit 5b41b21
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ Iterator.prototype.createKeyRange = function (options) {
var lowerOpen = ltgt.lowerBoundExclusive(options)
var upperOpen = ltgt.upperBoundExclusive(options)

// Temporary workaround for Level/abstract-leveldown#318
if ((Buffer.isBuffer(lower) || typeof lower === 'string') && lower.length === 0) lower = undefined
if ((Buffer.isBuffer(upper) || typeof upper === 'string') && upper.length === 0) upper = undefined
if ((Buffer.isBuffer(lowerOpen) || typeof lowerOpen === 'string') && lowerOpen.length === 0) lowerOpen = undefined
if ((Buffer.isBuffer(upperOpen) || typeof upperOpen === 'string') && upperOpen.length === 0) upperOpen = undefined

if (lower !== undefined && upper !== undefined) {
return IDBKeyRange.bound(lower, upper, lowerOpen, upperOpen)
} else if (lower !== undefined) {
Expand Down

0 comments on commit 5b41b21

Please sign in to comment.