stream: refactor redeclared variables
authorRich Trott <rtrott@gmail.com>
Fri, 22 Jan 2016 06:35:51 +0000 (22:35 -0800)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit1c70ecb116f7f6fe993ef6b6a3b236e9f46ecbb9
tree50bdd24c8ce08947ce83a05faca3d40382b91cd2
parent3814ad42506614831eabec04ca6bf57a379681cf
stream: refactor redeclared variables

`lib/_stream_readable.js` contained three instances of `var`
declarations occurring twice in the same scope. Refactored to `const` or
`let` as appropriate.

PR-URL: https://github.com/nodejs/node/pull/4816
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
lib/_stream_readable.js