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

Commit

Permalink
src: use CHECK(false) in switch default case
Browse files Browse the repository at this point in the history
  • Loading branch information
nitsakh authored and zcbenz committed Apr 11, 2019
1 parent db3808c commit ccee7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3278,7 +3278,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
is_public = false;
break;
default:
CHECK(!"Invalid key encoding type");
CHECK(false);
}

if (is_public) {
Expand Down

0 comments on commit ccee7f4

Please sign in to comment.