From 6078d23c6cf47159793932b645f825655c95e6f6 Mon Sep 17 00:00:00 2001 From: Oliver Belaifa Date: Tue, 12 Nov 2019 15:43:20 +0000 Subject: [PATCH] repl: change var to let PR-URL: https://github.com/nodejs/node/pull/30428 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater Reviewed-By: Gireesh Punathil --- lib/internal/repl/history.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/repl/history.js b/lib/internal/repl/history.js index dd3ea850954936..9eb32960d35dd5 100644 --- a/lib/internal/repl/history.js +++ b/lib/internal/repl/history.js @@ -41,9 +41,9 @@ function setupHistory(repl, historyPath, ready) { } } - var timer = null; - var writing = false; - var pending = false; + let timer = null; + let writing = false; + let pending = false; repl.pause(); // History files are conventionally not readable by others: // https://github.com/nodejs/node/issues/3392