[CodeFactor] Apply fixes to commit 476597e

This commit is contained in:
codefactor-io 2023-11-11 19:32:54 +00:00
parent 476597e792
commit 498a5c2e3c
No known key found for this signature in database
GPG key ID: B66B2D63282C190F

View file

@ -125,7 +125,6 @@ export function processModemConfig(data) {
const variableName = setting; const variableName = setting;
// Assign the value to the variable // Assign the value to the variable
if (variableName == "mycall") { if (variableName == "mycall") {
let mycall = data[category][setting]; let mycall = data[category][setting];
if (mycall.includes("-")) { if (mycall.includes("-")) {
const splittedCallsign = mycall.split("-"); const splittedCallsign = mycall.split("-");
@ -135,21 +134,15 @@ export function processModemConfig(data) {
settings.mycall = mycall; // Use the original mycall if no SSID is present settings.mycall = mycall; // Use the original mycall if no SSID is present
settings.myssid = 0; // Default SSID if not provided settings.myssid = 0; // Default SSID if not provided
} }
} else { } else {
settings[variableName] = data[category][setting]; settings[variableName] = data[category][setting];
} }
console.log(variableName + ': ' + settings[variableName]); console.log(variableName + ": " + settings[variableName]);
} }
} }
} }
} }
/* /*
// STATION SETTINGS // STATION SETTINGS
// Extract the callsign and SSID // Extract the callsign and SSID