Skip to content

Commit 84a8861

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 43e4669 commit 84a8861

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
@@ -314,7 +314,7 @@ class ZCtx : public AsyncWrap {
314314
}
315315
break;
316316
default:
317-
CHECK(0 && "wtf?");
317+
UNREACHABLE();
318318
}
319319

320320
// pass any errors back to the main thread to deal with.
@@ -525,7 +525,7 @@ class ZCtx : public AsyncWrap {
525525
->AdjustAmountOfExternalAllocatedMemory(kInflateContextSize);
526526
break;
527527
default:
528-
CHECK(0 && "wtf?");
528+
UNREACHABLE();
529529
}
530530

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

0 commit comments

Comments
 (0)