Closed jessegreenberg closed 2 weeks ago
Also, I made a small change to remove the disable lint rule directive, its slightly more complicated. Feel free to revert if you disagree with that choice.
Oh great catch! We definitely shouldn't hard code that. I went ahead and updated to look at the length of the array that was passed in. I'm fine with moving the callback definition outside of the loop. Looks good. This was really straightforward so I'm going to go ahead and just close :-)
This function may break if the number of cups ever changes, is there a way to not hard code 7?
For #270.