File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments