Closed smebberson closed 6 years ago
@allanchau, thoughts?
@smebberson Hrmm, personally I prefer less brackets eg smsList.map(sms => sms.sid)
because I find it easier to scan over and it looks a bit cleaner. Pretty much the same reason why I don't have the indent guides in my editor.
If it is slowing things down for you though, I don't mind changing it.
Yeah, I prefer less brackets, but you need brackets in most situations, 3/4. There is only one situation that doesn't require them. Don't you find it annoying and time consuming to put them in and remove them all the time?
It's a real pain in the butt to add and remove
()
as you add, change and remove parameters to arrow functions. Just to simplify things, I think()
should always be required. Less mucking around.This PR makes that change.