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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

+1-1
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)