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
path: root/src
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-11-19 23:58:00 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-11-19 23:58:00 +0300
commit7515360951dfeff6beee776f4a12f9d430d31165 (patch)
tree0b70ed01a2eaf4684bfa9597fc7a6b1000a1c0d5 /src
parentcbdcc1d5f321cfff3d4d3f416e48733089de7e00 (diff)
fix style for SecureStream::IsInitFinished
Diffstat (limited to 'src')
-rw-r--r--src/node_crypto.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index b79c88ba5b1..cc80e1b7b02 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -631,14 +631,9 @@ Handle<Value> SecureStream::Shutdown(const Arguments& args) {
Handle<Value> SecureStream::IsInitFinished(const Arguments& args) {
HandleScope scope;
-
SecureStream *ss = ObjectWrap::Unwrap<SecureStream>(args.Holder());
-
if (ss->ssl_ == NULL) return False();
- if (SSL_is_init_finished(ss->ssl_)) {
- return True();
- }
- return False();
+ return SSL_is_init_finished(ss->ssl_) ? True() : False();
}