diff options
author | Michael Dawson <mdawson@devrus.com> | 2022-03-21 20:48:27 +0300 |
---|---|---|
committer | Michael Dawson <mdawson@devrus.com> | 2022-03-29 23:49:02 +0300 |
commit | 33cbdb33e43440f3fa88f36510403e8fabd49b72 (patch) | |
tree | 432eea7beaff3fd6890bd177db3ba266bcfc3b1c /src/node_url.cc | |
parent | 1000eb168a06cc4403454c48dd1a2f8bdfd60275 (diff) |
src: address 3 useless call coverity warnings
Fix the last 3 useless call reports from coverity
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: https://github.com/nodejs/node/pull/42426
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/node_url.cc')
-rw-r--r-- | src/node_url.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_url.cc b/src/node_url.cc index 9f22fa06980..b13c94f030f 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -1666,7 +1666,7 @@ void Parse(Environment* env, null, // fragment defaults to null }; SetArgs(env, argv, url); - cb->Call(context, recv, arraysize(argv), argv).FromMaybe(Local<Value>()); + USE(cb->Call(context, recv, arraysize(argv), argv)); } else if (error_cb->IsFunction()) { Local<Value> flags = Integer::NewFromUnsigned(isolate, url.flags); USE(error_cb.As<Function>()->Call(context, recv, 1, &flags)); |