From 05fc9f90f4d4eb921799e9a58b319cf799c826c4 Mon Sep 17 00:00:00 2001 From: Nitish Sakhawalkar Date: Thu, 7 Mar 2019 17:02:13 -0800 Subject: [PATCH] src: use CHECK(false) in switch default case Porting https://github.com/nodejs/node/pull/26502 --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index fb6034466e6..d24df667049 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3267,7 +3267,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs( is_public = false; break; default: - CHECK(!"Invalid key encoding type"); + CHECK(false); } if (is_public) {