From b2534f11c6f8e22674a5b0551b1825bf7b7b88a0 Mon Sep 17 00:00:00 2001 From: Adri Van Houdt Date: Sat, 17 Sep 2016 11:55:51 +0200 Subject: [PATCH] lib: changed var to const in linkedlist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/8609 Reviewed-By: Brian White Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso --- lib/internal/linkedlist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/linkedlist.js b/lib/internal/linkedlist.js index d50e3415aa4b54..15f06c0efe8f05 100644 --- a/lib/internal/linkedlist.js +++ b/lib/internal/linkedlist.js @@ -24,7 +24,7 @@ exports.peek = peek; // remove the most idle item from the list function shift(list) { - var first = list._idlePrev; + const first = list._idlePrev; remove(first); return first; }