Nov 15, 2016 08:34
Apparently chat doesn't like newlines… I just wanted to say that for this specific case @JimmyJames also makes a good point. A good way to resolve this sort of Dev/Testing/Production difference is to pass in a configuration of some sort.
Nov 15, 2016 08:32
@Izkata makes a very good point: the two snippets express different ideas, even if the end result is the same. The appropriate comparison would be against phoneNumber = isApplicationInProduction(headers) ? headers.resourceId : DEV_PHONE_NUMBER.