Skip to content

Commit

Permalink
refactor: nhn#45 - short-circuit evaluation instead of conditional te…
Browse files Browse the repository at this point in the history
…rnary operator
  • Loading branch information
anton-marchenko authored and HerlinMatos committed Jul 2, 2020
1 parent b08ba0e commit b8db06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/ui/locale/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Locale {
* @returns {string}
*/
localize(message) {
return (this._locale[message]) ? this._locale[message] : message;
return this._locale[message] || message;
}
}

Expand Down

0 comments on commit b8db06f

Please sign in to comment.