diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-10-16 20:57:26 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-10-17 00:34:19 +0400 |
commit | 2bc30f239be3e56d642eda38df98c656d55b4d86 (patch) | |
tree | 562716d67952320494e68e2a7b4f08e84016eec1 /src/node_crypto_bio.cc | |
parent | 7063c59b97fa4f365f9e5ec1f563235ede4104db (diff) | |
download | node-new-2bc30f239be3e56d642eda38df98c656d55b4d86.tar.gz |
cpplint: disallow if one-liners
Diffstat (limited to 'src/node_crypto_bio.cc')
-rw-r--r-- | src/node_crypto_bio.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/node_crypto_bio.cc b/src/node_crypto_bio.cc index 1516fbdf37..f5c012d263 100644 --- a/src/node_crypto_bio.cc +++ b/src/node_crypto_bio.cc @@ -59,7 +59,8 @@ int NodeBIO::New(BIO* bio) { int NodeBIO::Free(BIO* bio) { - if (bio == NULL) return 0; + if (bio == NULL) + return 0; if (bio->shutdown) { if (bio->init && bio->ptr != NULL) { @@ -118,10 +119,12 @@ int NodeBIO::Gets(BIO* bio, char* out, int size) { int i = nbio->IndexOf('\n', size); // Include '\n' - if (i < size) i++; + if (i < size) + i++; // Shift `i` a bit to NULL-terminate string later - if (size == i) i--; + if (size == i) + i--; // Flush read data nbio->Read(out, i); |