Skip to content

Commit 9c0c336

Browse files
aqrlnMylesBorins
authored andcommitted
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>
1 parent b16d570 commit 9c0c336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_zlib.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class ZCtx : public AsyncWrap {
322322
}
323323
break;
324324
default:
325-
CHECK(0 && "wtf?");
325+
UNREACHABLE();
326326
}
327327

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

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

0 commit comments

Comments
 (0)