Skip to content

Commit ffd7dd0

Browse files
committed
lint
1 parent 8c6c66c commit ffd7dd0

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

doc/api/sqlite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,8 +1494,8 @@ callback function to indicate what type of operation is being authorized.
14941494
[Type conversion between JavaScript and SQLite]: #type-conversion-between-javascript-and-sqlite
14951495
[`ATTACH DATABASE`]: https://www.sqlite.org/lang_attach.html
14961496
[`PRAGMA foreign_keys`]: https://www.sqlite.org/pragma.html#pragma_foreign_keys
1497-
[`SQLITE_DBCONFIG_DEFENSIVE`]: https://www.sqlite.org/c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive
14981497
[Run-Time Limits]: https://www.sqlite.org/c3ref/limit.html
1498+
[`SQLITE_DBCONFIG_DEFENSIVE`]: https://www.sqlite.org/c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive
14991499
[`SQLITE_DETERMINISTIC`]: https://www.sqlite.org/c3ref/c_deterministic.html
15001500
[`SQLITE_DIRECTONLY`]: https://www.sqlite.org/c3ref/c_deterministic.html
15011501
[`SQLITE_MAX_FUNCTION_ARG`]: https://www.sqlite.org/limits.html#max_function_arg

src/node_sqlite.cc

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,7 @@ Local<ObjectTemplate> DatabaseSyncLimits::GetTemplate(Environment* env) {
738738
}
739739

740740
Intercepted DatabaseSyncLimits::LimitsGetter(
741-
Local<Name> property,
742-
const PropertyCallbackInfo<Value>& info) {
741+
Local<Name> property, const PropertyCallbackInfo<Value>& info) {
743742
// Skip symbols
744743
if (!property->IsString()) {
745744
return Intercepted::kNo;
@@ -813,8 +812,7 @@ Intercepted DatabaseSyncLimits::LimitsSetter(
813812
}
814813

815814
Intercepted DatabaseSyncLimits::LimitsQuery(
816-
Local<Name> property,
817-
const PropertyCallbackInfo<Integer>& info) {
815+
Local<Name> property, const PropertyCallbackInfo<Integer>& info) {
818816
if (!property->IsString()) {
819817
return Intercepted::kNo;
820818
}
@@ -828,8 +826,7 @@ Intercepted DatabaseSyncLimits::LimitsQuery(
828826
}
829827

830828
// Property exists and is writable
831-
info.GetReturnValue().Set(
832-
Integer::New(isolate, v8::PropertyAttribute::None));
829+
info.GetReturnValue().Set(Integer::New(isolate, v8::PropertyAttribute::None));
833830
return Intercepted::kYes;
834831
}
835832

@@ -849,8 +846,7 @@ void DatabaseSyncLimits::LimitsEnumerator(
849846
}
850847

851848
BaseObjectPtr<DatabaseSyncLimits> DatabaseSyncLimits::Create(
852-
Environment* env,
853-
BaseObjectWeakPtr<DatabaseSync> database) {
849+
Environment* env, BaseObjectWeakPtr<DatabaseSync> database) {
854850
Local<Object> obj;
855851
if (!GetTemplate(env)->NewInstance(env->context()).ToLocal(&obj)) {
856852
return nullptr;
@@ -1290,7 +1286,8 @@ void DatabaseSync::New(const FunctionCallbackInfo<Value>& args) {
12901286

12911287
// Parse limits option
12921288
Local<Value> limits_v;
1293-
if (!options->Get(env->context(), env->limits_string()).ToLocal(&limits_v)) {
1289+
if (!options->Get(env->context(), env->limits_string())
1290+
.ToLocal(&limits_v)) {
12941291
return;
12951292
}
12961293
if (!limits_v->IsUndefined()) {
@@ -1372,8 +1369,8 @@ void DatabaseSync::LimitsGetter(const FunctionCallbackInfo<Value>& args) {
13721369
Environment* env = Environment::GetCurrent(args);
13731370

13741371
if (!db->limits_object_) {
1375-
db->limits_object_ = DatabaseSyncLimits::Create(
1376-
env, BaseObjectWeakPtr<DatabaseSync>(db));
1372+
db->limits_object_ =
1373+
DatabaseSyncLimits::Create(env, BaseObjectWeakPtr<DatabaseSync>(db));
13771374
}
13781375

13791376
if (db->limits_object_) {

src/node_sqlite.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,7 @@ class DatabaseSyncLimits : public BaseObject {
373373
void MemoryInfo(MemoryTracker* tracker) const override;
374374
static v8::Local<v8::ObjectTemplate> GetTemplate(Environment* env);
375375
static BaseObjectPtr<DatabaseSyncLimits> Create(
376-
Environment* env,
377-
BaseObjectWeakPtr<DatabaseSync> database);
376+
Environment* env, BaseObjectWeakPtr<DatabaseSync> database);
378377

379378
static v8::Intercepted LimitsGetter(
380379
v8::Local<v8::Name> property,

0 commit comments

Comments
 (0)