From 5b41b21e169d7562ac254e04d17c6e420d6a52e2 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Thu, 27 Dec 2018 12:50:04 +0100 Subject: [PATCH] Revert "temporary workaround for Level/abstract-leveldown#318" This reverts commit 2d62675cfe5df04687a289e5af8d0d7dffac298c. --- iterator.js | 6 ------ 1 file changed, 6 deletions(-) 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) {