mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
crypto: use bool over int consistently
PR-URL: https://github.com/nodejs/node/pull/19238 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
d117f5ff22
commit
044995e546
1 file changed
+1
-1
+1
-1
@@ -3911,7 +3911,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) {
|
||||
|
||||
Reference in new issue
Block a user