Skip to content

Commit 312bc4e

Browse files
tniessenrichardlau
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 9a05107 commit 312bc4e

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
@@ -504,8 +504,7 @@ class BackupJob : public ThreadPoolWork {
504504

505505
Local<Value> argv[] = {progress_info};
506506
TryCatch try_catch(env()->isolate());
507-
fn->Call(env()->context(), Null(env()->isolate()), 1, argv)
508-
.FromMaybe(Local<Value>());
507+
USE(fn->Call(env()->context(), Null(env()->isolate()), 1, argv));
509508
if (try_catch.HasCaught()) {
510509
Finalize();
511510
resolver->Reject(env()->context(), try_catch.Exception()).ToChecked();

0 commit comments

Comments
 (0)