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

Commit 3050493

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)