From a9652d0c5ef13e3e9195f39f03e0fc26fbcd8802 Mon Sep 17 00:00:00 2001 From: aniketh-deepsource <76031695+aniketh-deepsource@users.noreply.github.com> Date: Tue, 2 Feb 2021 20:17:42 +0530 Subject: [PATCH] Fix(CI): added skip directive for deepsource JS-0128 This is regarding the recent two false positive report submitted. --- scripts/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}