From 666d3eaee66de967c31ed20474039dadf66ff43e Mon Sep 17 00:00:00 2001 From: butomo1989 Date: Thu, 2 Jul 2020 14:24:52 +0200 Subject: [PATCH] [Fixed issue in codacy] Using correct operator --- nginx/conf.d/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/conf.d/scripts/main.js b/nginx/conf.d/scripts/main.js index 39303c5..613bc9b 100644 --- a/nginx/conf.d/scripts/main.js +++ b/nginx/conf.d/scripts/main.js @@ -29,7 +29,7 @@ for (var pos = 0; pos < devices.length; pos++) { var td = document.createElement("td"); var content = devices[pos][headers[index]]; - if (index == 1) { + if (index === 1) { var link = document.createElement("a"); link.href = devices[pos][headers[index+1]]; link.innerHTML = content;