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

Commit 67596d8

Browse files
nitsakhcodebytere
authored andcommitted
src: use CHECK(false) in switch default case
Porting nodejs/node#26502
1 parent 68c93cb commit 67596d8

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
@@ -3187,7 +3187,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
31873187
is_public = false;
31883188
break;
31893189
default:
3190-
CHECK(!"Invalid key encoding type");
3190+
CHECK(false);
31913191
}
31923192

31933193
if (is_public) {

0 commit comments

Comments
 (0)