Skip to content

Commit 9c0a310

Browse files
Copilotmathiasrw
andcommitted
Address code review feedback - fix comment and remove unreachable code
Co-authored-by: mathiasrw <[email protected]>
1 parent 1ae1356 commit 9c0a310

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/91indexeddb.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ IDB.intoTable = function (databaseid, tableid, value, columns, cb) {
335335
var db = alasql.databases[databaseid];
336336
var table = db.tables[tableid];
337337

338-
// In autocommit mode, work with in-memory data
338+
// In transaction mode (autocommit OFF), work with in-memory data
339339
if (!alasql.options.autocommit) {
340340
// Ensure table data is loaded
341341
if (!table.data) {
@@ -663,10 +663,6 @@ IDB.begin = function (databaseid, cb) {
663663
tablesToLoad.forEach(tbid => {
664664
IDB.restoreTable(databaseid, tbid, checkComplete);
665665
});
666-
667-
if (tablesToLoad.length === 0) {
668-
return cb ? cb(1) : 1;
669-
}
670666
};
671667

672668
/**

0 commit comments

Comments
 (0)