Skip to content

Commit

Permalink
module: coverity fixes for ESM C++
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15275
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
bmeck authored and addaleax committed Sep 17, 2017
1 parent 24573e9 commit 53bf902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ inline const struct read_result read_file(uv_file file) {
}
struct file_check {
bool failed = true;
uv_file file;
uv_file file = -1;
} file_check;
inline const struct file_check check_file(URL search,
bool close = false,
Expand Down Expand Up @@ -461,7 +461,7 @@ URL Resolve(std::string specifier, URL* base, bool read_pkg_json) {
} else {
return resolve_module(specifier, base);
}
return URL("");
UNREACHABLE();
}

void ModuleWrap::Resolve(const FunctionCallbackInfo<Value>& args) {
Expand Down

0 comments on commit 53bf902

Please sign in to comment.