From c846184d03ba1f42bc8455081fc4d289c32a5d10 Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Tue, 13 Dec 2016 15:45:14 -0500 Subject: [PATCH] fs: remove needless assignment of null This line `pool = null;` isn't needed and has been around since the first iteration of streams. I can't find a good reason for it to exist, it's not more readable, nor does it seem to trick the compiler into any optimizations. PR-URL: https://github.com/nodejs/node/pull/10260 Reviewed-By: Anna Henningsen Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig Reviewed-By: Italo A. Casas --- lib/fs.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/fs.js b/lib/fs.js index c3c6f0536e3ef3..9140393ba68c3a 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1961,7 +1961,6 @@ ReadStream.prototype._read = function(n) { if (!pool || pool.length - pool.used < kMinPoolSpace) { // discard the old pool. - pool = null; allocNewPool(this._readableState.highWaterMark); }