mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 07:28:01 -06:00
Get rid of a var
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user