Skip to content

Commit 4280d8e

Browse files
committed
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.
1 parent 3d353c7 commit 4280d8e

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
@@ -1794,7 +1794,6 @@ ReadStream.prototype._read = function(n) {
17941794

17951795
if (!pool || pool.length - pool.used < kMinPoolSpace) {
17961796
// discard the old pool.
1797-
pool = null;
17981797
allocNewPool(this._readableState.highWaterMark);
17991798
}
18001799

0 commit comments

Comments
 (0)