src: check uv_fs_close() return value
Coverity was complaining about not checking the return value. PR-URL: https://github.com/nodejs/node/pull/26967 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
9fbf0c60b5
commit
bb98f27181
@ -494,7 +494,7 @@ inline Maybe<uv_file> OpenDescriptor(const std::string& path) {
|
||||
|
||||
inline void CloseDescriptor(uv_file fd) {
|
||||
uv_fs_t fs_req;
|
||||
uv_fs_close(nullptr, &fs_req, fd, nullptr);
|
||||
CHECK_EQ(0, uv_fs_close(nullptr, &fs_req, fd, nullptr));
|
||||
uv_fs_req_cleanup(&fs_req);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user