diff options
author | Matt Godbolt <matt@godbolt.org> | 2020-01-07 22:09:59 -0600 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2020-01-07 22:09:59 -0600 |
commit | 2feaec45ddf556641aa2fce217c60ee085658641 (patch) | |
tree | 3ecd2a60e1b23b3484e63dc400066f224c57f268 /lib/utils.js | |
parent | ab87392a453fd958e5cf445387cb4077543ba789 (diff) | |
download | compiler-explorer-2feaec45ddf556641aa2fce217c60ee085658641.tar.gz compiler-explorer-2feaec45ddf556641aa2fce217c60ee085658641.zip |
Get rid of a `var`
Diffstat (limited to 'lib/utils.js')
-rw-r--r-- | lib/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js index 43d5dff98..3fad5b904 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -95,7 +95,7 @@ function padRight(name, len) { exports.padRight = padRight; function trimRight(name) { - var l = name.length; + let l = name.length; while (l > 0 && name[l - 1] === ' ') l -= 1; return name.substr(0, l); } |