Skip to content

Commit e9fa0e5

Browse files
committed
http: linted code
1 parent ea23024 commit e9fa0e5

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

doc/api/https.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,13 @@ added: v0.3.4
124124

125125
See [`http.Server`][] for more information.
126126

127-
### `server.close([callback])`
127+
### `server.close([options][, callback])`
128128

129129
<!-- YAML
130130
added: v0.1.90
131131
-->
132132

133+
* `options` {Object}
133134
* `callback` {Function}
134135
* Returns: {https.Server}
135136

@@ -530,7 +531,7 @@ headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; p
530531
[`http.Server#setTimeout()`]: http.md#serversettimeoutmsecs-callback
531532
[`http.Server#timeout`]: http.md#servertimeout
532533
[`http.Server`]: http.md#class-httpserver
533-
[`http.close()`]: http.md#serverclosecallback
534+
[`http.close()`]: http.md#servercloseoptions-callback
534535
[`http.createServer()`]: http.md#httpcreateserveroptions-requestlistener
535536
[`http.get()`]: http.md#httpgetoptions-callback
536537
[`http.request()`]: http.md#httprequestoptions-callback

lib/_http_server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,14 +457,14 @@ Server.prototype.close = function(args, callback) {
457457
clearInterval(this[kConnectionsCheckingInterval]);
458458

459459
if (typeof args === 'function') {
460-
callback = args
461-
args = {}
460+
callback = args;
461+
args = {};
462462
}
463463

464464
ReflectApply(net.Server.prototype.close, this, [callback]);
465465

466466
if (typeof args === 'object' && 'force' in args) {
467-
let toClose = []
467+
let toClose = [];
468468

469469
switch (args.force) {
470470
case 'keep-alive':

test/parallel/test-http-server-close-all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const common = require('../common');
33
const assert = require('assert');
44

5-
const { createServer } = require('http');
5+
const { createServer } = require('http');
66
const { connect } = require('net');
77

88
const server = createServer(common.mustCall(function(req, res) {

test/parallel/test-http-server-close-idle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const common = require('../common');
33
const assert = require('assert');
44

5-
const { createServer } = require('http');
5+
const { createServer } = require('http');
66
const { connect } = require('net');
77

88
const server = createServer(common.mustCall(function(req, res) {

test/parallel/test-http-server-request-timeout-keepalive.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ function performRequestWithDelay(client, firstDelay, secondDelay, closeAfter) {
2828
}
2929

3030
const requestTimeout = common.platformTimeout(1000);
31-
const connectionsCheckingInterval = common.platformTimeout(250)
31+
const connectionsCheckingInterval = common.platformTimeout(250);
32+
3233
const server = createServer({
3334
headersTimeout: 0,
3435
requestTimeout,

0 commit comments

Comments
 (0)