Skip to content

Commit 11a5872

Browse files
tniessenMayaLekova
authored andcommitted
crypto: use bool over int consistently
PR-URL: nodejs#19238 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c825b4c commit 11a5872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3281,7 +3281,7 @@ bool CipherBase::Update(const char* data,
32813281
unsigned char** out,
32823282
int* out_len) {
32833283
if (ctx_ == nullptr)
3284-
return 0;
3284+
return false;
32853285

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

0 commit comments

Comments
 (0)