FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lib: changed var to const in linkedlist · nodejs/node@3b448a7 · GitHub

/ node Public

Commit 3b448a7

Browse files
authored andcommitted
lib: changed var to const in linkedlist
PR-URL: #8609 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent a2621a2 commit 3b448a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/_linklist.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exports.peek = peek;
1717

1818
// remove the most idle item from the list
1919
function shift(list) {
20-
var first = list._idlePrev;
20+
const first = list._idlePrev;
2121
remove(first);
2222
return first;
2323
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL