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

Commit 6e15b0c

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

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
@@ -3278,7 +3278,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
32783278
is_public = false;
32793279
break;
32803280
default:
3281-
CHECK(!"Invalid key encoding type");
3281+
CHECK(false);
32823282
}
32833283

32843284
if (is_public) {

0 commit comments

Comments
 (0)