sqlite: avoid useless call to FromMaybe() · nodejs/node@99e4a12

Original file line numberDiff line numberDiff line change

@@ -507,8 +507,7 @@ class BackupJob : public ThreadPoolWork {

507507
508508

Local<Value> argv[] = {progress_info};

509509

TryCatch try_catch(env()->isolate());

510-

fn->Call(env()->context(), Null(env()->isolate()), 1, argv)

511-

.FromMaybe(Local<Value>());

510+

USE(fn->Call(env()->context(), Null(env()->isolate()), 1, argv));

512511

if (try_catch.HasCaught()) {

513512

Finalize();

514513

resolver->Reject(env()->context(), try_catch.Exception()).ToChecked();