Skip to content

Commit e90c836

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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
1 parent bf84ed0 commit e90c836

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
@@ -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)