mozilla / fxa-auth-server

DEPRECATED - Migrated to https://github.com/mozilla/fxa
Mozilla Public License 2.0
399 stars 121 forks source link

refactor(config): cache repetitive calls to conf.get #2989

Closed philbooth closed 5 years ago

philbooth commented 5 years ago

This is just a tiny little improvement I noticed we could make while reviewing #2986. Instead of calling conf.get('contentServer.url') inline 12 times inside these template literals, it reads a bit nicer if we assign the result to a variable name instead.

@mozilla/fxa-devs r?