diff --git a/scripts/script.js b/scripts/script.js index 848529e..5ae8784 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -402,7 +402,7 @@ function lineIntersects(rayOrigin, direction, mirror) { return { p: false, dist: Infinity, dir: direction } } -function undo() { +function undo() { // skipcq: JS-0128 lastItem = opticsHistory.pop() if (lastItem instanceof Laser) lights.pop() @@ -412,7 +412,7 @@ function undo() { updateSim() } -function clearAll() { +function clearAll() { // skipcq: JS-0128 opticsHistory = [] lights = [] rays = [] @@ -430,4 +430,4 @@ function vSub(v1, v2) { function length(vector) { return Math.sqrt(vector[0] ** 2 + vector[1] ** 2) -} \ No newline at end of file +}