From 17733d3c423d60f6bc0ad163115c518c23c6119e Mon Sep 17 00:00:00 2001 From: MaleDong Date: Wed, 22 Aug 2018 12:15:00 +0800 Subject: [PATCH] lib: remove unnecessary symbols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove `(...)`, because this is a simple,sensitive expression. PR-URL: https://github.com/nodejs/node/pull/22455 Reviewed-By: Weijia Wang Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Gus Caplan Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Tobias Nießen Reviewed-By: Matteo Collina Reviewed-By: James M Snell --- lib/_stream_readable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 07e2c41beec21b..2b9600f0fd6647 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -147,7 +147,7 @@ function Readable(options) { // Checking for a Stream.Duplex instance is faster here instead of inside // the ReadableState constructor, at least with V8 6.5 - const isDuplex = (this instanceof Stream.Duplex); + const isDuplex = this instanceof Stream.Duplex; this._readableState = new ReadableState(options, this, isDuplex);