generated from microverseinc/readme-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
To-Do-list/src/modules/addItem.js
Line 29 in 7109b17
| localStorage.setItem('arrayOfTasks', JSON.stringify(arrayOfTasks)); |
To-Do-list/src/modules/addItem.js
Line 41 in 7109b17
| localStorage.setItem('arrayOfTasks', JSON.stringify(arrayOfTasks)); |
To-Do-list/src/modules/addItem.js
Line 52 in 7109b17
| localStorage.setItem('arrayOfTasks', JSON.stringify(arrayOfTasks)); |
To-Do-list/src/modules/checker.js
Line 12 in 7109b17
| localStorage.setItem('arrayOfTasks', JSON.stringify(array)); |
To-Do-list/src/modules/createItem.js
Line 27 in 7109b17
| localStorage.setItem('arrayOfTasks', JSON.stringify(arrayOfTasks)); |
- This code is not DRY cause repeated lines of could is visible. Try to use a function for your local storage set item and just call the function again and again instead of writing the whole statement.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels