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