Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
src: remove unprofessional slang in assertions
Convert `CHECK(0 && "wtf?")` (sic) assertions to more suitable
`UNREACHABLE()` macro invocations in `node_zlib.cc`.
  • Loading branch information
aqrln committed Nov 21, 2017
commit 876f27aca3a1f6f2ce7c147d170966fd018c3591
4 changes: 2 additions & 2 deletions src/node_zlib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class ZCtx : public AsyncWrap {
}
break;
default:
CHECK(0 && "wtf?");
UNREACHABLE();
}

// pass any errors back to the main thread to deal with.
Expand Down Expand Up @@ -550,7 +550,7 @@ class ZCtx : public AsyncWrap {
->AdjustAmountOfExternalAllocatedMemory(kInflateContextSize);
break;
default:
CHECK(0 && "wtf?");
UNREACHABLE();
}

ctx->dictionary_ = reinterpret_cast<Bytef *>(dictionary);
Expand Down