Skip to content

Commit 7fe16ec

Browse files
mhdawsondanielleadams
authored andcommitted
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 <mdawson@devrus.com> PR-URL: #42272 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 5b30e28 commit 7fe16ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_file.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,13 @@ inline void FileHandle::Close() {
277277
detail.fd);
278278
if (env->filehandle_close_warning()) {
279279
env->set_filehandle_close_warning(false);
280-
ProcessEmitDeprecationWarning(
280+
USE(ProcessEmitDeprecationWarning(
281281
env,
282282
"Closing a FileHandle object on garbage collection is deprecated. "
283283
"Please close FileHandle objects explicitly using "
284284
"FileHandle.prototype.close(). In the future, an error will be "
285285
"thrown if a file descriptor is closed during garbage collection.",
286-
"DEP0137").IsNothing();
286+
"DEP0137"));
287287
}
288288
}, CallbackFlags::kUnrefed);
289289
}

0 commit comments

Comments
 (0)