Skip to content

Commit cf6f98e

Browse files
committed
sqlite: fix clang-format in virtual table code
1 parent 04c015f commit cf6f98e

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/node_sqlite.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,8 +2010,7 @@ void DatabaseSync::CreateModule(const FunctionCallbackInfo<Value>& args) {
20102010

20112011
if (!rows_v->IsFunction()) {
20122012
THROW_ERR_INVALID_ARG_TYPE(
2013-
env->isolate(),
2014-
"The \"options.rows\" argument must be a function.");
2013+
env->isolate(), "The \"options.rows\" argument must be a function.");
20152014
return;
20162015
}
20172016

@@ -2083,8 +2082,7 @@ void DatabaseSync::CreateModule(const FunctionCallbackInfo<Value>& args) {
20832082

20842083
if (!col_name_v->IsString()) {
20852084
THROW_ERR_INVALID_ARG_TYPE(
2086-
env->isolate(),
2087-
"The column \"name\" property must be a string.");
2085+
env->isolate(), "The column \"name\" property must be a string.");
20882086
return;
20892087
}
20902088

@@ -2098,8 +2096,7 @@ void DatabaseSync::CreateModule(const FunctionCallbackInfo<Value>& args) {
20982096

20992097
if (!col_type_v->IsString()) {
21002098
THROW_ERR_INVALID_ARG_TYPE(
2101-
env->isolate(),
2102-
"The column \"type\" property must be a string.");
2099+
env->isolate(), "The column \"type\" property must be a string.");
21032100
return;
21042101
}
21052102

@@ -4040,8 +4037,7 @@ static void Initialize(Local<Object> target,
40404037
isolate, db_tmpl, "loadExtension", DatabaseSync::LoadExtension);
40414038
SetProtoMethod(
40424039
isolate, db_tmpl, "setAuthorizer", DatabaseSync::SetAuthorizer);
4043-
SetProtoMethod(
4044-
isolate, db_tmpl, "createModule", DatabaseSync::CreateModule);
4040+
SetProtoMethod(isolate, db_tmpl, "createModule", DatabaseSync::CreateModule);
40454041
SetSideEffectFreeGetter(isolate,
40464042
db_tmpl,
40474043
FIXED_ONE_BYTE_STRING(isolate, "isOpen"),

src/node_sqlite.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,7 @@ class VirtualTableModule {
397397
sqlite3_value** argv);
398398
static int xNext(sqlite3_vtab_cursor* pCursor);
399399
static int xEof(sqlite3_vtab_cursor* pCursor);
400-
static int xColumn(sqlite3_vtab_cursor* pCursor,
401-
sqlite3_context* ctx,
402-
int i);
400+
static int xColumn(sqlite3_vtab_cursor* pCursor, sqlite3_context* ctx, int i);
403401
static int xRowid(sqlite3_vtab_cursor* pCursor, sqlite3_int64* pRowid);
404402
static void xDestroyModule(void* pAux);
405403

0 commit comments

Comments
 (0)