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

Commit a99125c

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

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