Skip to content

Commit 2b3f46c

Browse files
committed
crypto: use bool over int consistently
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 0f05173 commit 2b3f46c

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)