Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: bryans-go <sabrinabryan1990@gmail.com>
  • Loading branch information
divanshu-go committed Oct 12, 2024
1 parent 52b5daa commit cc03b44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ function addTodo() {
updateTodoList();
}

// eslint-disable-next-line no-unused-vars
function deleteTodo(index) {
// Remove the specific todo from the list
todoList.splice(index, 1);
localStorage.setItem('todoList', JSON.stringify(todoList));
updateTodoList();
}

// eslint-disable-next-line no-unused-vars
function editTodo(index) {
let inputNameElement = document.querySelector('.js-name-input');
let inputDateElement = document.querySelector('.js-date-input');
Expand Down

0 comments on commit cc03b44

Please sign in to comment.