From 0ad5b3051ca6ea32680f7cc4f115ad33cf022481 Mon Sep 17 00:00:00 2001 From: "M. Wulff" Date: Mon, 8 Jul 2024 23:46:39 +0200 Subject: [PATCH] Format --- src/91indexeddb.js | 3 ++- test/test1919.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/91indexeddb.js b/src/91indexeddb.js index ac36ac015d..b779669366 100755 --- a/src/91indexeddb.js +++ b/src/91indexeddb.js @@ -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 { diff --git a/test/test1919.js b/test/test1919.js index 9a1b61c210..c8e96ae59a 100644 --- a/test/test1919.js +++ b/test/test1919.js @@ -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) {