Skip to content

Commit

Permalink
squash: address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdawson committed Mar 14, 2018
1 parent f28dfe5 commit 8220f5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2286,9 +2286,8 @@ static void DLOpen(const FunctionCallbackInfo<Value>& args) {
return;
}

if (mp->nm_version == -1) {
// N-API module this is ok
} else if (mp->nm_version != NODE_MODULE_VERSION) {
// -1 is used for N-API modules
if ((mp->nm_version != -1) && (mp->nm_version != NODE_MODULE_VERSION)) {
char errmsg[1024];
snprintf(errmsg,
sizeof(errmsg),
Expand Down

0 comments on commit 8220f5c

Please sign in to comment.