summaryrefslogtreecommitdiff
path: root/src/tcp_wrap.cc
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-10-16 20:57:26 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-10-17 00:34:19 +0400
commit2bc30f239be3e56d642eda38df98c656d55b4d86 (patch)
tree562716d67952320494e68e2a7b4f08e84016eec1 /src/tcp_wrap.cc
parent7063c59b97fa4f365f9e5ec1f563235ede4104db (diff)
downloadandroid-node-v8-2bc30f239be3e56d642eda38df98c656d55b4d86.tar.gz
android-node-v8-2bc30f239be3e56d642eda38df98c656d55b4d86.tar.bz2
android-node-v8-2bc30f239be3e56d642eda38df98c656d55b4d86.zip
cpplint: disallow if one-liners
Diffstat (limited to 'src/tcp_wrap.cc')
-rw-r--r--src/tcp_wrap.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tcp_wrap.cc b/src/tcp_wrap.cc
index 305ee1db2b..e0cab70e7f 100644
--- a/src/tcp_wrap.cc
+++ b/src/tcp_wrap.cc
@@ -400,7 +400,8 @@ void TCPWrap::Connect(const FunctionCallbackInfo<Value>& args) {
reinterpret_cast<const sockaddr*>(&addr),
AfterConnect);
req_wrap->Dispatched();
- if (err) delete req_wrap;
+ if (err)
+ delete req_wrap;
}
args.GetReturnValue().Set(err);
@@ -432,7 +433,8 @@ void TCPWrap::Connect6(const FunctionCallbackInfo<Value>& args) {
reinterpret_cast<const sockaddr*>(&addr),
AfterConnect);
req_wrap->Dispatched();
- if (err) delete req_wrap;
+ if (err)
+ delete req_wrap;
}
args.GetReturnValue().Set(err);
@@ -449,7 +451,8 @@ Local<Object> AddressToJS(Environment* env,
const sockaddr_in6 *a6;
int port;
- if (info.IsEmpty()) info = Object::New();
+ if (info.IsEmpty())
+ info = Object::New();
switch (addr->sa_family) {
case AF_INET6: