Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 45d26ec

Browse files
committed
src: use CHECK(false) in switch default case
Porting nodejs/node#26502
1 parent 142f159 commit 45d26ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3267,7 +3267,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
32673267
is_public = false;
32683268
break;
32693269
default:
3270-
CHECK(!"Invalid key encoding type");
3270+
CHECK(false);
32713271
}
32723272

32733273
if (is_public) {

0 commit comments

Comments
 (0)