Improvements after review

This commit is contained in:
Filipa Lacerda 2016-11-18 13:48:44 +00:00
parent b7d7453b36
commit 0c9b7e0e89
1 changed files with 1 additions and 9 deletions

View File

@ -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
},
};
})();