Remove variable shadowing from the JavaScript files in the src/display/ folder

*This is part of a series of patches that will try to split PR 11566 into smaller chunks, to make reviewing more feasible.*

Once all the code has been fixed, we'll be able to eventually enable the ESLint no-shadow rule; see https://eslint.org/docs/rules/no-shadow
This commit is contained in:
Jonas Jenwald 2020-03-20 23:00:36 +01:00
parent 3cebb430c2
commit 3539a17d2a
6 changed files with 44 additions and 44 deletions

View file

@ -158,7 +158,7 @@ var createMeshCanvas = (function createMeshCanvasClosure() {
var x2_ = Math.round(Math.max(xa, xb));
var j = rowSize * y + x1_ * 4;
for (var x = x1_; x <= x2_; x++) {
let k = (xa - x) / (xa - xb);
k = (xa - x) / (xa - xb);
if (k < 0) {
k = 0;
} else if (k > 1) {