[CodeFactor] Apply fixes

This commit is contained in:
codefactor-io 2023-11-19 04:08:43 +00:00
parent 36e71f44f7
commit 8792d3b0f2
No known key found for this signature in database
GPG key ID: B66B2D63282C190F
2 changed files with 15 additions and 15 deletions

View file

@ -11,7 +11,7 @@ function getOverallHealth() {
let health = 0; let health = 0;
if (state.modem_connection !== "connected") health += 5; if (state.modem_connection !== "connected") health += 5;
if (!state.is_modem_running) health += 3; if (!state.is_modem_running) health += 3;
if ( state.radio_status === false) health += 2; if (state.radio_status === false) health += 2;
if (process.env.FDUpdateAvail === "1") health += 1; if (process.env.FDUpdateAvail === "1") health += 1;
return health; return health;
} }

View file

@ -50,7 +50,7 @@ function getRigControlStuff() {
return true; return true;
case "rigctld": case "rigctld":
case "tci": case "tci":
return state.radio_status return state.radio_status;
default: default:
console.error( console.error(
"Unknown radio control mode " + settings.remote.RADIO.control, "Unknown radio control mode " + settings.remote.RADIO.control,
@ -348,20 +348,20 @@ function testHamlib() {
> >
<select <select
class="form-select form-select-sm" class="form-select form-select-sm"
aria-label=".form-select-sm" aria-label=".form-select-sm"
id="hamlib_deviceport" id="hamlib_deviceport"
style="width: 7rem" style="width: 7rem"
@change="onChange" @change="onChange"
v-model="settings.remote.RADIO.serial_port" v-model="settings.remote.RADIO.serial_port"
>
<option
v-for="option in serialDeviceOptions()"
v-bind:value="option.port"
> >
{{ option.port }} <option
</option> v-for="option in serialDeviceOptions()"
</select> v-bind:value="option.port"
>
{{ option.port }}
</option>
</select>
</div> </div>
</div> </div>
<div <div