fix linting

This commit is contained in:
Arthur Lu 2023-08-23 22:55:48 +00:00
parent e6f622d643
commit 98e2445979

View File

@ -779,8 +779,8 @@ function addBootLine (container, data, before = null) {
}
function deleteBootLine (id) {
let enabled = document.querySelector("#enabled");
let disabled = document.querySelector("#disabled");
const enabled = document.querySelector("#enabled");
const disabled = document.querySelector("#disabled");
if (enabled.getItemByID(id)) {
enabled.deleteItemByID(id);
}
@ -790,14 +790,14 @@ function deleteBootLine (id) {
}
function updateBootLine (id, newData) {
let enabled = document.querySelector("#enabled");
let disabled = document.querySelector("#disabled");
const enabled = document.querySelector("#enabled");
const disabled = document.querySelector("#disabled");
let element = null;
if (enabled.getItemByID(id)) {
element = enabled.getItemByID(id);
}
if (disabled.getItemByID(id)) {
element = disabled.getItemByID(id)
element = disabled.getItemByID(id);
}
if (element) {
const container = element.container;