Permalink
Browse files

src: remove unprofessional slang in assertions

Convert `CHECK(0 && "wtf?")` (sic) assertions to more suitable
`UNREACHABLE()` macro invocations in `node_zlib.cc`.

PR-URL: #17166
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
  • Loading branch information...
aqrln authored and MylesBorins committed Nov 21, 2017
1 parent 43e4669 commit 84a8861b628cbad16b56395e86a3d1caba95f76e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/node_zlib.cc
View
@@ -314,7 +314,7 @@ class ZCtx : public AsyncWrap {
}
break;
default:
CHECK(0 && "wtf?");
UNREACHABLE();
}
// pass any errors back to the main thread to deal with.
@@ -525,7 +525,7 @@ class ZCtx : public AsyncWrap {
->AdjustAmountOfExternalAllocatedMemory(kInflateContextSize);
break;
default:
CHECK(0 && "wtf?");
UNREACHABLE();
}
ctx->dictionary_ = reinterpret_cast<Bytef *>(dictionary);

0 comments on commit 84a8861

Please sign in to comment.