Skip to content

Commit c846184

Browse files
reconbotMylesBorins
authored andcommitted
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: #10260 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Italo A. Casas <[email protected]>
1 parent 6ad8a6e commit c846184

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/fs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,6 @@ ReadStream.prototype._read = function(n) {
19611961

19621962
if (!pool || pool.length - pool.used < kMinPoolSpace) {
19631963
// discard the old pool.
1964-
pool = null;
19651964
allocNewPool(this._readableState.highWaterMark);
19661965
}
19671966

0 commit comments

Comments
 (0)