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

Commit 9999e67

Browse files
committed
src: use CHECK(false) in switch default case
Porting nodejs/node#26502
1 parent 3ec9b6e commit 9999e67

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
@@ -3267,7 +3267,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
32673267
is_public = false;
32683268
break;
32693269
default:
3270-
CHECK(!"Invalid key encoding type");
3270+
CHECK(false);
32713271
}
32723272

32733273
if (is_public) {

0 commit comments

Comments
 (0)