From 468a289c82c537a505b2a362ff849b318260f0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Thu, 8 Mar 2018 20:36:35 +0100 Subject: [PATCH] crypto: use bool over int consistently PR-URL: https://github.com/nodejs/node/pull/19238 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- 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 1be8d92654eae2..66ed992f9b0da5 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3736,7 +3736,7 @@ bool CipherBase::Update(const char* data, unsigned char** out, int* out_len) { if (ctx_ == nullptr) - return 0; + return false; // on first update: if (kind_ == kDecipher && IsAuthenticatedMode() && auth_tag_len_ > 0) {