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

Commit 5e4a13a

Browse files
nitsakhzcbenz
authored andcommitted
src: use CHECK(false) in switch default case
Porting nodejs/node#26502
1 parent fd3210d commit 5e4a13a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3447,7 +3447,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
34473447
is_public = false;
34483448
break;
34493449
default:
3450-
CHECK(!"Invalid key encoding type");
3450+
CHECK(false);
34513451
}
34523452

34533453
if (is_public) {

0 commit comments

Comments
 (0)