From 56162512522fb8713657c7a0d1c3e8ab59f6155f Mon Sep 17 00:00:00 2001
From: DCoded <dcoded@live.com>
Date: Mon, 18 Mar 2019 19:35:49 -0400
Subject: [PATCH] Cleanup

---
 src/debugging/debugJS.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/debugging/debugJS.js b/src/debugging/debugJS.js
index fdf5771c88e..5675664ec6d 100644
--- a/src/debugging/debugJS.js
+++ b/src/debugging/debugJS.js
@@ -23,8 +23,11 @@ window.difference = function difference(o1, o2) {
 			if (!(k in o2) || o1[k] !== o2[k]) {
 				diff[k] = o2[k];
 			}
-		} else if (kDiff = difference(o1[k], o2[k])) {	/** FIXME: Expected a conditional expression and instead saw an assignment.eslint(no-cond-assign) */
-			diff[k] = kDiff;
+		} else {
+			kDiff = difference(o1[k], o2[k])
+			if (kDiff) {
+				diff[k] = kDiff;
+			}
 		}
 	}
 	for (k in o2) {
-- 
GitLab