diff --git a/iterator.js b/iterator.js index 74eb017..0f64738 100644 --- a/iterator.js +++ b/iterator.js @@ -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) {