mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Remove unnecessary code
The outer `if` (line 92) already guarantees only 2 possible values. If `isQueryTypeChart` is false, `isForwardDestinationChart` must be true. Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -96,7 +96,7 @@ globalThis.htmlLegendPlugin = {
|
||||
|
||||
if (isQueryTypeChart) {
|
||||
link.href = `queries?type=${item.text}`;
|
||||
} else if (isForwardDestinationChart) {
|
||||
} else {
|
||||
// Encode the forward destination as it may contain an "#" character
|
||||
link.href = `queries?upstream=${encodeURIComponent(upstreams[item.text])}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user