Skip to content

Commit

Permalink
crypto: use bool over int consistently
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tniessen authored and MylesBorins committed Mar 20, 2018
1 parent d117f5f commit 044995e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 044995e

Please sign in to comment.