Skip to content

Commit 5420ed5

Browse files
committed
fix whitespace and lint js
1 parent 7a40860 commit 5420ed5

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/node_sqlite.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ void StatementSync::All(const FunctionCallbackInfo<Value>& args) {
15841584
}
15851585
} else {
15861586
LocalVector<Name> row_keys(isolate);
1587-
1587+
15881588
while ((r = sqlite3_step(stmt->statement_)) == SQLITE_ROW) {
15891589
if (row_keys.size() == 0) {
15901590
row_keys.reserve(num_cols);

test/parallel/test-sqlite-statement-sync.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ suite('StatementSync.prototype.get() with array output', () => {
373373

374374
const query = db.prepare('SELECT key, val FROM data WHERE key = 1');
375375
t.assert.deepStrictEqual(query.get(), { __proto__: null, key: 1, val: 'one' });
376-
376+
377377
query.setReturnArrays(true);
378378
t.assert.deepStrictEqual(query.get(), [1, 'one']);
379-
379+
380380
query.setReturnArrays(false);
381381
t.assert.deepStrictEqual(query.get(), { __proto__: null, key: 1, val: 'one' });
382382
});
383-
383+
384384
test('returns array rows with BigInts when both flags are set', (t) => {
385385
const expected = [1n, 9007199254740992n];
386386
const db = new DatabaseSync(nextDb());
@@ -416,20 +416,20 @@ suite('StatementSync.prototype.all() with array output', () => {
416416
{ __proto__: null, key: 1, val: 'one' },
417417
{ __proto__: null, key: 2, val: 'two' },
418418
]);
419-
419+
420420
query.setReturnArrays(true);
421421
t.assert.deepStrictEqual(query.all(), [
422422
[1, 'one'],
423423
[2, 'two'],
424424
]);
425-
425+
426426
query.setReturnArrays(false);
427427
t.assert.deepStrictEqual(query.all(), [
428428
{ __proto__: null, key: 1, val: 'one' },
429429
{ __proto__: null, key: 2, val: 'two' },
430430
]);
431431
});
432-
432+
433433
test('handles array rows with many columns', (t) => {
434434
const expected = [
435435
1,
@@ -459,7 +459,7 @@ suite('StatementSync.prototype.all() with array output', () => {
459459

460460
const query = db.prepare('SELECT * FROM wide_table');
461461
query.setReturnArrays(true);
462-
462+
463463
const results = query.all();
464464
t.assert.strictEqual(results.length, 1);
465465
t.assert.deepStrictEqual(results[0], expected);
@@ -478,7 +478,7 @@ suite('StatementSync.prototype.iterate() with array output', () => {
478478
t.assert.strictEqual(setup, undefined);
479479

480480
const query = db.prepare('SELECT key, val FROM data ORDER BY key');
481-
481+
482482
// Test with objects first
483483
const objectRows = [];
484484
for (const row of query.iterate()) {
@@ -499,14 +499,14 @@ suite('StatementSync.prototype.iterate() with array output', () => {
499499
[1, 'one'],
500500
[2, 'two'],
501501
]);
502-
502+
503503
// Test toArray() method
504504
t.assert.deepStrictEqual(query.iterate().toArray(), [
505505
[1, 'one'],
506506
[2, 'two'],
507507
]);
508508
});
509-
509+
510510
test('iterator can be exited early with array rows', (t) => {
511511
const db = new DatabaseSync(':memory:');
512512
db.exec(`
@@ -516,7 +516,7 @@ suite('StatementSync.prototype.iterate() with array output', () => {
516516
`);
517517
const stmt = db.prepare('SELECT key, val FROM test');
518518
stmt.setReturnArrays(true);
519-
519+
520520
const iterator = stmt.iterate();
521521
const results = [];
522522

0 commit comments

Comments
 (0)