mirror of
https://github.com/pi-hole/web.git
synced 2025-12-26 05:26:19 +00:00
JavaScript allows the omission of curly braces when a block contains only one statement. However, codacy wants us to never omit curly braces around blocks, even when they are optional. This code has not been introduced in this PR, so it's not entirely clear why it has been detected in this PR...
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -274,7 +274,7 @@ $(document).ready(function() {
|
||||
// Receive previous state from client's local storage area
|
||||
var data = localStorage.getItem("query_log_table");
|
||||
// Return if not available
|
||||
if(data === null) return null;
|
||||
if(data === null){ return null; }
|
||||
// Ensure that we always start on the first page (most recent query)
|
||||
data = JSON.parse(data);
|
||||
data["start"] = 0;
|
||||
|
||||
Reference in New Issue
Block a user