Skip to content

Commit

Permalink
🐜 no way to return -1
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Nov 20, 2023
1 parent fc0847a commit 75a8e10
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ export function createTask(priority: SchedulingPriority): Task {
export function removeTask(task: Task): void {
const index = state.tasks.indexOf(task)

// istanbul ignore if
if (index === -1) {
// silentError()
} else {
if (index !== -1) {
state.tasks.splice(index, 1)
}
}
Expand Down

0 comments on commit 75a8e10

Please sign in to comment.