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 codebytere committed Mar 20, 2019
1 parent 68c93cb commit 67596d8
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 @@ -3187,7 +3187,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 67596d8

Please sign in to comment.