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 committed Dec 21, 2018
1 parent 86aa0b7 commit 4c8e15d
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 4c8e15d

Please sign in to comment.