From 993456ef47d2736ada9dd4e484528f3aa657f9b0 Mon Sep 17 00:00:00 2001 From: Adam Wisher <37659188+mrwish7@users.noreply.github.com> Date: Sun, 14 Jul 2024 09:59:47 +0100 Subject: [PATCH] TX search sp.E mode: tidy up Remove unrequired lines from sp.E mode switch code. --- server/tx_search.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/tx_search.js b/server/tx_search.js index ad03bae..325df36 100644 --- a/server/tx_search.js +++ b/server/tx_search.js @@ -57,8 +57,6 @@ function processData(data, piCode, rdsPs) { let weightDistance = distance.distanceKm if (esMode && distance.distanceKm > 200) { weightDistance = Math.abs(distance.distanceKm-1500); - } else { - weightDistance = distance.distanceKm; } const score = (10*Math.log10(station.erp*1000)) / weightDistance; // Calculate score if (score > maxScore) {