Skip to content

Commit f26b576

Browse files
aqrlngibfahn
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 3fe7f9f commit f26b576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_zlib.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class ZCtx : public AsyncWrap {
336336
}
337337
break;
338338
default:
339-
CHECK(0 && "wtf?");
339+
UNREACHABLE();
340340
}
341341

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

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

0 commit comments

Comments
 (0)