Skip to content

Commit 044995e

Browse files
tniessenMylesBorins
authored andcommitted
crypto: use bool over int consistently
PR-URL: #19238 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d117f5f commit 044995e

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
@@ -3911,7 +3911,7 @@ bool CipherBase::Update(const char* data,
39113911
unsigned char** out,
39123912
int* out_len) {
39133913
if (ctx_ == nullptr)
3914-
return 0;
3914+
return false;
39153915

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

0 commit comments

Comments
 (0)