mesmollar / bapi-p3-the-scoop

0 stars 0 forks source link

Simplify: If conditions #1

Open blerude opened 6 years ago

blerude commented 6 years ago

https://github.com/mesmollar/bapi-p3-the-scoop/blob/master/Project%203%20Submission/server.js#L180-L183

This can be simplified, as you repeat some conditions multiple times.

mesmollar commented 6 years ago

Understood. Yes I was writing this during a phase of self-doubt I guess! :^) Trying to throw in everything and the kitchen sink and hope I'm safe. Haha.