Skip to content

Commit a3ff272

Browse files
committed
squash: object shorthand nits
1 parent 515db4c commit a3ff272

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/parallel/test-http-client-keep-alive-release-before-finish.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const server = http.createServer((req, res) => {
1313
const port = server.address().port;
1414

1515
const post = http.request({
16-
agent: agent,
16+
agent,
1717
method: 'POST',
18-
port: port,
18+
port,
1919
}, common.mustCall((res) => {
2020
res.resume();
2121
}));
@@ -30,9 +30,9 @@ const server = http.createServer((req, res) => {
3030
}, 100);
3131

3232
http.request({
33-
agent: agent,
33+
agent,
3434
method: 'GET',
35-
port: port,
35+
port,
3636
}, common.mustCall((res) => {
3737
server.close();
3838
res.connection.end();

test/parallel/test-http-no-read-no-dump.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ const server = http.createServer((req, res) => {
2424
const port = server.address().port;
2525

2626
const post = http.request({
27-
agent: agent,
27+
agent,
2828
method: 'POST',
29-
port: port,
29+
port,
3030
}, common.mustCall((res) => {
3131
res.resume();
3232

@@ -43,9 +43,9 @@ const server = http.createServer((req, res) => {
4343
post.write('initial');
4444

4545
http.request({
46-
agent: agent,
46+
agent,
4747
method: 'GET',
48-
port: port,
48+
port,
4949
}, common.mustCall((res) => {
5050
server.close();
5151
res.connection.end();

0 commit comments

Comments
 (0)