Skip to content

Commit e7288f3

Browse files
committed
sqlite: break long lines
1 parent e25f0ce commit e7288f3

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

src/node_sqlite.cc

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -688,13 +688,18 @@ int AuthorizerFunction::xAuthorizer(void* user_data,
688688

689689
// Convert SQLite authorizer parameters to JavaScript values
690690
js_argv.emplace_back(Integer::New(isolate, action_code));
691-
js_argv.emplace_back(NullableSQLiteStringToValue(isolate, param1).ToLocalChecked());
692-
js_argv.emplace_back(NullableSQLiteStringToValue(isolate, param2).ToLocalChecked());
693-
js_argv.emplace_back(NullableSQLiteStringToValue(isolate, param3).ToLocalChecked());
694-
js_argv.emplace_back(NullableSQLiteStringToValue(isolate, param4).ToLocalChecked());
691+
js_argv.emplace_back(
692+
NullableSQLiteStringToValue(isolate, param1).ToLocalChecked());
693+
js_argv.emplace_back(
694+
NullableSQLiteStringToValue(isolate, param2).ToLocalChecked());
695+
js_argv.emplace_back(
696+
NullableSQLiteStringToValue(isolate, param3).ToLocalChecked());
697+
js_argv.emplace_back(
698+
NullableSQLiteStringToValue(isolate, param4).ToLocalChecked());
695699

696700
TryCatch try_catch(isolate);
697-
MaybeLocal<Value> retval = fn->Call(context, Undefined(isolate), js_argv.size(), js_argv.data());
701+
MaybeLocal<Value> retval = fn->Call(
702+
context, Undefined(isolate), js_argv.size(), js_argv.data());
698703

699704
if (try_catch.HasCaught()) {
700705
// If there's an exception in the callback, deny the operation
@@ -1928,8 +1933,9 @@ void DatabaseSync::SetAuthorizer(const FunctionCallbackInfo<Value>& args) {
19281933
}
19291934

19301935
if (!args[0]->IsFunction()) {
1931-
THROW_ERR_INVALID_ARG_TYPE(isolate,
1932-
"The \"callback\" argument must be a function or null.");
1936+
THROW_ERR_INVALID_ARG_TYPE(
1937+
isolate,
1938+
"The \"callback\" argument must be a function or null.");
19331939
return;
19341940
}
19351941

@@ -3258,7 +3264,10 @@ static void Initialize(Local<Object> target,
32583264
DatabaseSync::EnableLoadExtension);
32593265
SetProtoMethod(
32603266
isolate, db_tmpl, "loadExtension", DatabaseSync::LoadExtension);
3261-
SetProtoMethod(isolate, db_tmpl, "setAuthorizer", DatabaseSync::SetAuthorizer);
3267+
SetProtoMethod(isolate,
3268+
db_tmpl,
3269+
"setAuthorizer",
3270+
DatabaseSync::SetAuthorizer);
32623271
SetSideEffectFreeGetter(isolate,
32633272
db_tmpl,
32643273
FIXED_ONE_BYTE_STRING(isolate, "isOpen"),

0 commit comments

Comments
 (0)