File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class Server extends EventEmitter {
6161 // start an http tracker unless the user explictly says no
6262 if ( opts . http !== false ) {
6363 // Use (ot not) SSL Certificate
64- if ( typeof ( opts . ssl ) != "undefined" ) {
64+ if ( typeof opts . ssl !== "undefined" ) {
6565 this . http = https . createServer ( opts . ssl )
6666 } else {
6767 this . http = http . createServer ( )
@@ -102,7 +102,7 @@ class Server extends EventEmitter {
102102 if ( opts . ws !== false ) {
103103 if ( ! this . http ) {
104104 // Use (ot not) SSL Certificate
105- if ( typeof ( opts . ssl ) != "undefined" ) {
105+ if ( typeof opts . ssl !== "undefined" ) {
106106 this . http = https . createServer ( opts . ssl )
107107 } else {
108108 this . http = http . createServer ( )
@@ -142,7 +142,7 @@ class Server extends EventEmitter {
142142 if ( opts . stats !== false ) {
143143 if ( ! this . http ) {
144144 // Use (ot not) SSL Certificate
145- if ( typeof ( opts . ssl ) != "undefined" ) {
145+ if ( typeof opts . ssl !== "undefined" ) {
146146 this . http = https . createServer ( opts . ssl )
147147 } else {
148148 this . http = http . createServer ( )
You can’t perform that action at this time.
0 commit comments