From 4b34e6fef13f182502892eb6d5561a3cbb223e63 Mon Sep 17 00:00:00 2001 From: Alexey Orlenko Date: Tue, 21 Nov 2017 04:40:35 +0200 Subject: src: remove unprofessional slang in assertions Convert `CHECK(0 && "wtf?")` (sic) assertions to more suitable `UNREACHABLE()` macro invocations in `node_zlib.cc`. PR-URL: https://github.com/nodejs/node/pull/17166 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Timothy Gu Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: Daniel Bevenius Reviewed-By: Anatoli Papirovski --- src/node_zlib.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/node_zlib.cc') diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 08df3e97d7..21145a0d5b 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -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. @@ -550,7 +550,7 @@ class ZCtx : public AsyncWrap { ->AdjustAmountOfExternalAllocatedMemory(kInflateContextSize); break; default: - CHECK(0 && "wtf?"); + UNREACHABLE(); } ctx->dictionary_ = reinterpret_cast(dictionary); -- cgit v1.2.3