Open juanjonol opened 8 years ago
Create a "exists_disk" function that accepts two callbacks: one to call if the disk is found in the JSON and another to call if it isn't.
This would simplify the add_disk and delete_disk functions.
Create a "exists_disk" function that accepts two callbacks: one to call if the disk is found in the JSON and another to call if it isn't.
This would simplify the add_disk and delete_disk functions.