Skip to content

Commit 21198c1

Browse files
mhdawsonbengl
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 <[email protected]> PR-URL: #42272 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 846b074 commit 21198c1

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)