Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Dec 16, 2023
1 parent d0fe571 commit 93ff8a1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,11 +859,11 @@ class IDE {
};
overpass.handlers["onEmptyMap"] = function (empty_msg, data_mode) {
// get the current query
let query = ide.getRawQuery();
const query = ide.getRawQuery();

// check if 'out' followed by any number of characters (non-greedy) and then 'count' is present in the query
var isCountPresent = /out[^;]+?count/.test(query);
const isCountPresent = /out[^;]+?count/.test(query);

// show warning/info if only invisible data is returned and 'out...count' is not present in the query
if (empty_msg == "no visible data") {
if (!isCountPresent && !settings.no_autorepair) {
Expand Down Expand Up @@ -901,7 +901,7 @@ class IDE {
dialog_buttons
);
} else if (isCountPresent) {
ide.switchTab("Data");
ide.switchTab("Data");
}
}
// auto tab switching (if only areas are returned)
Expand Down

0 comments on commit 93ff8a1

Please sign in to comment.