mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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>
This commit is contained in:
1 parent
6c13988d53
commit
2e6a66d7d7
3 files changed
+3
-4
No files matched your search
@@ -215,10 +215,10 @@ void InspectorConsoleCall(const FunctionCallbackInfo<Value>& info) {
|
||||
|
||||
Local<Value> node_method = info[1];
|
||||
CHECK(node_method->IsFunction());
|
||||
node_method.As<Function>()->Call(context,
|
||||
USE(node_method.As<Function>()->Call(context,
|
||||
info.Holder(),
|
||||
call_args.length(),
|
||||
call_args.out()).FromMaybe(Local<Value>());
|
||||
call_args.out()));
|
||||
}
|
||||
|
||||
static void* GetAsyncTask(int64_t asyncId) {
|
||||
|
||||
@@ -2646,7 +2646,6 @@ void Http2Session::New(const FunctionCallbackInfo<Value>& args) {
|
||||
static_cast<SessionType>(
|
||||
args[0]->Int32Value(env->context()).ToChecked());
|
||||
Http2Session* session = new Http2Session(state, args.This(), type);
|
||||
session->get_async_id(); // avoid compiler warning
|
||||
Debug(session, "session created");
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user