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:
DL6ER
2018-06-17 15:11:11 +02:00
parent a98df3d190
commit a0f9a1bdb8

View File

@@ -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;