edwin-chalmers / fitlit

FitLit project starter kit for students
0 stars 0 forks source link

Refactor Get functions #53

Open edwin-chalmers opened 7 months ago

edwin-chalmers commented 7 months ago

There are a few functions that have quite a few similarities between each other. For example, could we find a way to combine getAverageSleepHours and getAverageSleepQuality together using bracket notation? What about getMostRecentSleepHours and getMostRecentSleepQuality or getWeeklySleepHours and getWeeklySleepQuality. Make sure to update tests based on any refactoring.