diff --git a/apps/gipy/app.js b/apps/gipy/app.js index 4bd1adbeb..cbc2c1bcd 100644 --- a/apps/gipy/app.js +++ b/apps/gipy/app.js @@ -660,11 +660,11 @@ class Status { towards = next_point; } let diff = towards.minus(this.projected_point); - direction = Math.atan2(diff.lat, diff.lon); + const direction = Math.atan2(diff.lat, diff.lon); let full_angle = direction - this.angle; - c = this.projected_point.coordinates( + const c = this.projected_point.coordinates( this.displayed_position, this.adjusted_cos_direction, this.adjusted_sin_direction, @@ -1394,7 +1394,7 @@ function ask_options(fn) { g.flip(); function options_select(b, xy) { - end = false; + let end = false; if (xy.y < height / 2 - 10) { g.setColor(0, 0, 0).fillRect(10, 10, width - 10, height / 2 - 10); g.setColor(1, 1, 1).setFont("Vector:30").setFontAlign(0,0).drawString("Forward", width/2, height/4); diff --git a/apps/lint_exemptions.js b/apps/lint_exemptions.js index 3b7da1a20..b3503de72 100644 --- a/apps/lint_exemptions.js +++ b/apps/lint_exemptions.js @@ -1015,12 +1015,6 @@ module.exports = { "no-undef" ] }, - "apps/gipy/app.js": { - "hash": "41f342e8ef6f2a87b3aea19b75ee45cfdfeff723b94281049e3ae0ec89cddba5", - "rules": [ - "no-undef" - ] - }, "apps/geissclk/precompute.js": { "hash": "2317812a9e348e7883e93a4be9e294ad7accd4dc3f0e31ee00343e2412030f98", "rules": [