Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasrw committed Jul 8, 2024
1 parent 9c7307b commit 0ad5b30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/91indexeddb.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ IDB.fromTable = function (databaseid, tableid, cb, idx, query) {
const cursor = cur.result;
if (cursor) {
// if keyPath(columns) is not present then we take the key and value as object.
const cursorValue = typeof cursor === "object" ? cursor.value : {[cursor.key]: cursor.value};
const cursorValue =
typeof cursor === 'object' ? cursor.value : {[cursor.key]: cursor.value};
res.push(cursorValue);
cursor.continue();
} else {
Expand Down
6 changes: 3 additions & 3 deletions test/test1919.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ describe(`Test 1919 Load data from JSONL file`, function () {
a: 'foo',
b: 5,
c: true,
d: null
d: null,
},
{
a: 'bar',
b: 8,
c: false,
d: null
}
d: null,
},
];
it('1. Load JSONL', function (done) {
alasql('SELECT * FROM JSONL("' + __dirname + '/test1919")', [], function (res) {
Expand Down

0 comments on commit 0ad5b30

Please sign in to comment.