Skip to content

Commit

Permalink
crypto: use bool over int consistently
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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 MayaLekova committed May 8, 2018
1 parent c825b4c commit 11a5872
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 @@ -3281,7 +3281,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 11a5872

Please sign in to comment.