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

Commit 97b5f65

Browse files
committed
src: use CHECK(false) in switch default case
Porting nodejs/node#26502
1 parent 696fda5 commit 97b5f65

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
@@ -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)