Skip to content

Commit 4d5cb4c

Browse files
tniessenMylesBorins
authored andcommitted
crypto: use bool over int consistently
Backport-PR-URL: #22380 PR-URL: #19238 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7ed297d commit 4d5cb4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3736,7 +3736,7 @@ bool CipherBase::Update(const char* data,
37363736
unsigned char** out,
37373737
int* out_len) {
37383738
if (ctx_ == nullptr)
3739-
return 0;
3739+
return false;
37403740

37413741
// on first update:
37423742
if (kind_ == kDecipher && IsAuthenticatedMode() && auth_tag_len_ > 0) {

0 commit comments

Comments
 (0)