Skip to content

Commit

Permalink
Fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 2, 2025
1 parent a50a8be commit a597c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/serial_backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { sensor_status, have_sensor } from "./sensor_helpers";
import { update_dataflash_global } from "./update_dataflash_global";
import { gui_log } from "./gui_log";
import { updateTabList } from "./utils/updateTabList";
import { get as getConfig, set as setConfig } from "./ConfigStorage";
import { get as getConfig } from "./ConfigStorage";
import { tracking } from "./Analytics";
import semver from "semver";
import CryptoES from "crypto-es";
Expand Down Expand Up @@ -275,7 +275,7 @@ function onOpen(openInfo) {
gui_log(i18n.getMessage("serialPortOpened", [PortHandler.portPicker.selectedPort]));

// reset expert mode
result = getConfig("expertMode")?.expertMode ?? false;
const result = getConfig("expertMode")?.expertMode ?? false;
$('input[name="expertModeCheckbox"]').prop("checked", result).trigger("change");

// serialShim adds event listener for selected connection type
Expand Down

0 comments on commit a597c8f

Please sign in to comment.