diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 63115d59b856ba..d29182d585779b 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -1114,20 +1114,14 @@ Server.prototype.setSecureContext = function(options) { else this.crl = undefined; - if (options.sigalgs !== undefined) - this.sigalgs = options.sigalgs; - else - this.sigalgs = undefined; + this.sigalgs = options.sigalgs; if (options.ciphers) this.ciphers = options.ciphers; else this.ciphers = undefined; - if (options.ecdhCurve !== undefined) - this.ecdhCurve = options.ecdhCurve; - else - this.ecdhCurve = undefined; + this.ecdhCurve = options.ecdhCurve; if (options.dhparam) this.dhparam = options.dhparam;