From a3c523601247aed3a23dd25570d9be4e4190a7d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Thu, 7 Apr 2022 19:46:50 +0200 Subject: [PATCH] Fix prettier 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 | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 74b041bc..fac1ff0f 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -297,20 +297,25 @@ $(function () { dataSrc: function (data) { if ("FTLnotrunning" in data) { // if FTL is not running, return empyt array (empty table) - utils.showAlert("error","", "Error while deleting DHCP lease for ", "FTL is not running"); + utils.showAlert( + "error", + "", + "Error while deleting DHCP lease for ", + "FTL is not running" + ); 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,