Browse Source

src: remove unneeded ABORT after CHECK

CHECK includes node::Abort(), so that's unneeded to call ABORT after
CHECK.

PR-URL: https://github.com/nodejs/node/pull/8593
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
v6.x
yorkie 8 years ago
committed by Jeremiah Senkpiel
parent
commit
5ebce30468
  1. 2
      src/cares_wrap.cc
  2. 1
      src/fs_event_wrap.cc
  3. 1
      src/node_crypto_bio.cc

2
src/cares_wrap.cc

@ -1135,7 +1135,6 @@ static void GetAddrInfo(const FunctionCallbackInfo<Value>& args) {
break;
default:
CHECK(0 && "bad address family");
ABORT();
}
GetAddrInfoReqWrap* req_wrap = new GetAddrInfoReqWrap(env, req_wrap_obj);
@ -1261,7 +1260,6 @@ static void SetServers(const FunctionCallbackInfo<Value>& args) {
break;
default:
CHECK(0 && "Bad address family.");
ABORT();
}
if (err)

1
src/fs_event_wrap.cc

@ -155,7 +155,6 @@ void FSEventWrap::OnEvent(uv_fs_event_t* handle, const char* filename,
event_string = env->change_string();
} else {
CHECK(0 && "bad fs events flag");
ABORT();
}
Local<Value> argv[] = {

1
src/node_crypto_bio.cc

@ -189,7 +189,6 @@ long NodeBIO::Ctrl(BIO* bio, int cmd, long num, // NOLINT(runtime/int)
break;
case BIO_C_SET_BUF_MEM:
CHECK(0 && "Can't use SET_BUF_MEM_PTR with NodeBIO");
ABORT();
break;
case BIO_C_GET_BUF_MEM_PTR:
CHECK(0 && "Can't use GET_BUF_MEM_PTR with NodeBIO");

Loading…
Cancel
Save