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

Commit d46fb53

Browse files
committed
src: use CHECK(false) in switch default case
Porting nodejs/node#26502
1 parent a474da3 commit d46fb53

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

32833283
if (is_public) {

0 commit comments

Comments
 (0)