From 6e15b0ccb6a192411565d1ce84770d08588ff231 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 f03c7419a46..4062dfc93e7 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3278,7 +3278,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs( is_public = false; break; default: - CHECK(!"Invalid key encoding type"); + CHECK(false); } if (is_public) {