From 4196fd97bbf28624e2b72ad92f26de214d71aae9 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Thu, 7 Dec 2023 16:53:35 -0700 Subject: [PATCH] fix: regressions from TS refactoring --- src/IDBObjectStore.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/IDBObjectStore.js b/src/IDBObjectStore.js index 6c2c942e..9993a69e 100644 --- a/src/IDBObjectStore.js +++ b/src/IDBObjectStore.js @@ -606,7 +606,7 @@ IDBObjectStore.prototype.__insertData = function (tx, encoded, value, clonedKeyO error(createDOMException( 'ConstraintError', /** @type {string} */ (err.message), err )); - return true; + return false; }); return undefined; }).catch(function (err) { @@ -708,7 +708,7 @@ IDBObjectStore.prototype.__overwrite = function (tx, key, cb, error) { cb(tx); }, function (tx, err) { error(err); - return true; + return false; }); }; @@ -832,7 +832,7 @@ IDBObjectStore.prototype.__get = function (query, getKey, getAll, count) { success(ret); }, function (tx, err) { error(err); - return true; + return false; }); }, undefined, me); }; @@ -926,7 +926,7 @@ IDBObjectStore.prototype.delete = function (query) { success(); }, function (tx, err) { error(err); - return true; + return false; }); }, undefined, me); }; @@ -957,7 +957,7 @@ IDBObjectStore.prototype.clear = function () { success(); }, function (tx, err) { error(err); - return true; + return false; }); }, undefined, me); };