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

Commit dc1ea71

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

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

32843284
if (is_public) {

0 commit comments

Comments
 (0)