Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
Should have run prettier
  • Loading branch information
cristianl committed Jan 6, 2018
1 parent 8300c66 commit e56e881
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/server/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ var serverUtils = {
options.get("httpModule") === "http2"
) {
var opts = serverUtils.getHttpsOptions(options);

if (parseInt(process.versions.node.split(".")[0]) >= 9) {
return httpModule.createSecureServer(opts.toJS(), app);
return httpModule.createSecureServer(opts.toJS(), app);
}

return httpModule.createServer(opts.toJS(), app);
}

Expand All @@ -112,9 +112,11 @@ var serverUtils = {
* require lookup.
*/
var httpModule = options.get("httpModule");

if (httpModule === "http2" &&
parseInt(process.versions.node.split(".")[0]) >= 9) {

if (
httpModule === "http2" &&
parseInt(process.versions.node.split(".")[0]) >= 9
) {
return require("http2");
}

Expand Down

0 comments on commit e56e881

Please sign in to comment.