diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-18 13:48:44 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-18 13:48:44 +0000 |
commit | 0c9b7e0e892d7c98d6434571743caedfbdd65e2c (patch) | |
tree | cd6b3af1364736c8f247571dbe6bff8bbee51727 | |
parent | b7d7453b36e3b8266e57b622ff630e67bdae97b0 (diff) | |
download | gitlab-ce-0c9b7e0e892d7c98d6434571743caedfbdd65e2c.tar.gz |
Improvements after review
-rw-r--r-- | app/assets/javascripts/environments/stores/environments_store.js.es6 | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/assets/javascripts/environments/stores/environments_store.js.es6 b/app/assets/javascripts/environments/stores/environments_store.js.es6 index 83bbc0145de..0204a903ab5 100644 --- a/app/assets/javascripts/environments/stores/environments_store.js.es6 +++ b/app/assets/javascripts/environments/stores/environments_store.js.es6 @@ -125,15 +125,7 @@ const nameA = a.name.toUpperCase(); const nameB = b.name.toUpperCase(); - if (nameA < nameB) { - return -1; - } - - if (nameA > nameB) { - return 1; - } - - return 0; + return nameA < nameB ? -1 : nameA > nameB ? 1 : 0; // eslint-disable-line }, }; })(); |