From 2903e7239c1ec0b25c53edf88898b20958e95d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Thu, 7 Apr 2022 21:02:31 +0200 Subject: [PATCH] Fix prettier II MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- scripts/pi-hole/js/queries.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index fac1ff0f..851efd94 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -305,17 +305,17 @@ $(function () { ); data = {}; return data; + } else { + var dataIndex = 0; + return data.data.map(function (x) { + x[0] = x[0] * 1e6 + dataIndex++; + var dnssec = x[5]; + var reply = x[6]; + x[5] = reply; + x[6] = dnssec; + return x; + }); } - - var dataIndex = 0; - return data.data.map(function (x) { - x[0] = x[0] * 1e6 + dataIndex++; - var dnssec = x[5]; - var reply = x[6]; - x[5] = reply; - x[6] = dnssec; - return x; - }); }, }, autoWidth: false,