Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e90c836

Browse filesBrowse 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 bf84ed0 commit e90c836
Copy full SHA for e90c836

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎src/node_zlib.cc‎

Copy file name to clipboardExpand all lines: src/node_zlib.cc
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.