From fc2868e2e794a454dd03b1379099717d4c115c45 Mon Sep 17 00:00:00 2001 From: daern91 Date: Tue, 12 Nov 2019 14:52:12 +0000 Subject: [PATCH] stream: replace var with let --- lib/internal/streams/end-of-stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/streams/end-of-stream.js b/lib/internal/streams/end-of-stream.js index 3f1c0f316cd3c6..bb01e800becdf3 100644 --- a/lib/internal/streams/end-of-stream.js +++ b/lib/internal/streams/end-of-stream.js @@ -35,14 +35,14 @@ function eos(stream, opts, callback) { if (!stream.writable) onfinish(); }; - var writableEnded = stream._writableState && stream._writableState.finished; + let writableEnded = stream._writableState && stream._writableState.finished; const onfinish = () => { writable = false; writableEnded = true; if (!readable) callback.call(stream); }; - var readableEnded = stream.readableEnded || + let readableEnded = stream.readableEnded || (stream._readableState && stream._readableState.endEmitted); const onend = () => { readable = false;