diff --git a/src/taskService.js b/src/taskService.js index d9eaefc2c9e6a236f6354495e2bfc79941f70631..1ec2dd452d95b72a1b5b6ad9285dd67637a5fa06 100644 --- a/src/taskService.js +++ b/src/taskService.js @@ -16,7 +16,7 @@ function getAllTasks() { function addTask(description) { if (!description) { - throw new Error("La description est requise"); + throw new Error('La description est requise'); } const newId = tasks.reduce((max, task) => task.id > max ? task.id : max, 0) + 1; const newTask = {