Skip to content

Commit

Permalink
https: simpler argument check
Browse files Browse the repository at this point in the history
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
  • Loading branch information
targos authored and brendanashworth committed Feb 7, 2015
1 parent b9d3928 commit c22e5ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/https.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ function createConnection(port, host, options) {
options = port;
} else if (host !== null && typeof host === 'object') {
options = host;
} else if (options !== null && typeof options === 'object') {
options = options;
} else {
} else if (options === null || typeof options !== 'object') {
options = {};
}

Expand Down

1 comment on commit c22e5ac

@brendanashworth
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR-URL: #753

Please sign in to comment.