Skip to content

Commit

Permalink
module: coverity fixes for ESM C++
Browse files Browse the repository at this point in the history
PR-URL: #15275
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
bmeck authored and jasnell committed Sep 20, 2017
1 parent 3bf718c commit 939c8ed
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 939c8ed

Please sign in to comment.