Skip to content

Commit 26f9013

Browse files
committed
stream: Appease linter
1 parent 9c76632 commit 26f9013

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/internal/streams/duplexpair.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
'use strict';
2+
const {
3+
Symbol,
4+
} = primordials;
5+
26
const { Duplex } = require('stream');
37
const assert = require('internal/assert');
48

5-
const { Symbol } = primordials;
69
const kCallback = Symbol('Callback');
710
const kInitOtherSide = Symbol('InitOtherSide');
811

test/parallel/test-http2-perform-server-handshake.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ if (!common.hasCrypto)
88
const assert = require('assert');
99
const http2 = require('http2');
1010
const stream = require('stream');
11-
const makeDuplexPair = require('../common/duplexpair');
11+
const { duplexPair } = require('stream');
1212

1313
// Basic test
1414
{
15-
const { clientSide, serverSide } = makeDuplexPair();
15+
const [ clientSide, serverSide ] = duplexPair();
1616

1717
const client = http2.connect('http://example.com', {
1818
createConnection: () => clientSide,

0 commit comments

Comments
 (0)