From 44f9bb83ee72bf10d5f8032b70b5ab144c4cc6bb Mon Sep 17 00:00:00 2001 From: DCoded <dcoded@live.com> Date: Mon, 18 Mar 2019 19:00:11 -0400 Subject: [PATCH] More fixes --- src/art/vector/VectorArtJS.js | 3 ++- src/debugging/debugJS.js | 2 +- src/js/assignJS.js | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/art/vector/VectorArtJS.js b/src/art/vector/VectorArtJS.js index 918758cc80c..39468cc85b6 100644 --- a/src/art/vector/VectorArtJS.js +++ b/src/art/vector/VectorArtJS.js @@ -1,3 +1,4 @@ +/* eslint-disable no-case-declarations */ /* eslint-disable no-undef */ window.VectorArt = (function () { "use strict"; @@ -627,7 +628,7 @@ window.VectorArt = (function () { case "slutty jewelry": case "uncomfortable straps": case "Western clothing": - ballsScaleFactor = (slave.scrotum / 3) * heightScaleFactor; + let ballsScaleFactor = (slave.scrotum / 3) * heightScaleFactor; artTranslationX = -271 * (ballsScaleFactor - 1); artTranslationY = -453 * (ballsScaleFactor - 1); T.artTransformBalls = `matrix(${ballsScaleFactor},0,0,${ballsScaleFactor},${artTranslationX},${artTranslationY})`; diff --git a/src/debugging/debugJS.js b/src/debugging/debugJS.js index 69c665ef71d..fdf5771c88e 100644 --- a/src/debugging/debugJS.js +++ b/src/debugging/debugJS.js @@ -1,3 +1,4 @@ +/* eslint-disable no-empty */ /* eslint-disable no-undef */ /* Given an object, this will return an array where for each property of the original object, we include the object @@ -18,7 +19,6 @@ window.difference = function difference(o1, o2) { var k, kDiff, diff = {}; for (k in o1) { if (!o1.hasOwnProperty(k)) { - /** FIXME: Empty block statement.eslint(no-empty) */ } else if (typeof o1[k] !== 'object' || typeof o2[k] !== 'object') { if (!(k in o2) || o1[k] !== o2[k]) { diff[k] = o2[k]; diff --git a/src/js/assignJS.js b/src/js/assignJS.js index 7f2f743a5fb..9da3181848d 100644 --- a/src/js/assignJS.js +++ b/src/js/assignJS.js @@ -1,3 +1,4 @@ +/* eslint-disable no-case-declarations */ /* eslint-disable no-undef */ window.assignJob = function assignJob(slave, job) { "use strict"; @@ -488,7 +489,7 @@ window.removeJob = function removeJob(slave, assignment) { case "be your agent": case "live with your agent": slave.assignment = "rest"; - _leaderIndex = V.leaders.findIndex(function(x) { return x.ID === slave.ID; }); + const _leaderIndex = V.leaders.findIndex(function(x) { return x.ID === slave.ID; }); if (_leaderIndex !== -1) V.leaders.deleteAt(_leaderIndex); -- GitLab