Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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/stream_wrap.cc
parent7063c59b97fa4f365f9e5ec1f563235ede4104db (diff)
cpplint: disallow if one-liners
Diffstat (limited to 'src/stream_wrap.cc')
-rw-r--r--src/stream_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc
index f1949d98296..f268bde3b62 100644
--- a/src/stream_wrap.cc
+++ b/src/stream_wrap.cc
@@ -481,7 +481,8 @@ void StreamWrap::Shutdown(const FunctionCallbackInfo<Value>& args) {
ShutdownWrap* req_wrap = new ShutdownWrap(env, req_wrap_obj);
int err = wrap->callbacks()->DoShutdown(req_wrap, AfterShutdown);
req_wrap->Dispatched();
- if (err) delete req_wrap;
+ if (err)
+ delete req_wrap;
args.GetReturnValue().Set(err);
}