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:
cjihrig 2019-03-28 16:41:37 -04:00
parent 9fbf0c60b5
commit bb98f27181
No known key found for this signature in database
GPG Key ID: 7434390BDBE9B9C5

View File

@ -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);
}