From 7515360951dfeff6beee776f4a12f9d430d31165 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 19 Nov 2010 12:58:00 -0800 Subject: [PATCH] fix style for SecureStream::IsInitFinished --- src/node_crypto.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b79c88ba5b..cc80e1b7b0 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -631,14 +631,9 @@ Handle SecureStream::Shutdown(const Arguments& args) { Handle SecureStream::IsInitFinished(const Arguments& args) { HandleScope scope; - SecureStream *ss = ObjectWrap::Unwrap(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(); }