From 8437f23f9bad2ec53cc550b3d70e5c32d2f7f335 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Wed, 9 Mar 2022 16:21:52 -0500 Subject: [PATCH] src: fix coverity warnings in node_file.cc Fix two warnings about a useless call and not checking a return value. Signed-off-by: Michael Dawson --- src/node_file.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index 115a9fc9bfc287..105ed4c4150608 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -277,13 +277,13 @@ inline void FileHandle::Close() { detail.fd); if (env->filehandle_close_warning()) { env->set_filehandle_close_warning(false); - ProcessEmitDeprecationWarning( + USE(ProcessEmitDeprecationWarning( env, "Closing a FileHandle object on garbage collection is deprecated. " "Please close FileHandle objects explicitly using " "FileHandle.prototype.close(). In the future, an error will be " "thrown if a file descriptor is closed during garbage collection.", - "DEP0137").IsNothing(); + "DEP0137")); } }, CallbackFlags::kUnrefed); }