From d23a4cf7b71ae906e979d60b40cfee9bf375afb6 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 5d90b40e0041c7..1af974e83e1b79 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