Skip to content

Commit 99e4a12

Browse files
tniessentargos
authored andcommitted
sqlite: avoid useless call to FromMaybe()
PR-URL: #59490 Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent 65c870e commit 99e4a12

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node_sqlite.cc

Lines changed: 1 addition & 2 deletions
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();

0 commit comments

Comments
 (0)