Skip to content

Commit 5ae2b74

Browse files
committed
sqlite: run formatter
1 parent d0dc60a commit 5ae2b74

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/node_sqlite.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,16 +1742,18 @@ void DatabaseSync::ApplyChangeset(const FunctionCallbackInfo<Value>& args) {
17421742

17431743
Local<Function> filterFunc = filterValue.As<Function>();
17441744

1745-
context.filterCallback = [env, filterFunc](std::string_view item) -> bool {
1745+
context.filterCallback = [env,
1746+
filterFunc](std::string_view item) -> bool {
17461747
// TODO(@jasnell): The use of ToLocalChecked here means that if
17471748
// the filter function throws an error the process will crash.
17481749
// The filterCallback should be updated to avoid the check and
17491750
// propagate the error correctly.
1750-
Local<Value> argv[] = {String::NewFromUtf8(env->isolate(),
1751-
item.data(),
1752-
NewStringType::kNormal,
1753-
static_cast<int>(item.size()))
1754-
.ToLocalChecked()};
1751+
Local<Value> argv[] = {
1752+
String::NewFromUtf8(env->isolate(),
1753+
item.data(),
1754+
NewStringType::kNormal,
1755+
static_cast<int>(item.size()))
1756+
.ToLocalChecked()};
17551757
Local<Value> result =
17561758
filterFunc->Call(env->context(), Null(env->isolate()), 1, argv)
17571759
.ToLocalChecked();

0 commit comments

Comments
 (0)