Skip to content

Commit 3ca5b2a

Browse files
committed
repl: eliminate var in function _memory
1 parent 6a83057 commit 3ca5b2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/repl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ function _memory(cmd) {
13231323
let up = cmd.match(/[})]/g);
13241324
up = up ? up.length : 0;
13251325
dw = dw ? dw.length : 0;
1326-
var depth = dw - up;
1326+
let depth = dw - up;
13271327

13281328
if (depth) {
13291329
(function workIt() {
@@ -1342,9 +1342,9 @@ function _memory(cmd) {
13421342
});
13431343
} else if (depth < 0) {
13441344
// Going... up.
1345-
var curr = self.lines.level.pop();
1345+
const curr = self.lines.level.pop();
13461346
if (curr) {
1347-
var tmp = curr.depth + depth;
1347+
const tmp = curr.depth + depth;
13481348
if (tmp < 0) {
13491349
// More to go, recurse
13501350
depth += curr.depth;

0 commit comments

Comments
 (0)