fix prettier (#7071)

This commit is contained in:
Joffrey JAFFEUX 2019-02-26 11:24:02 +01:00 committed by GitHub
parent 7ccb0b882f
commit 1cee8a86f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -106,13 +106,8 @@ export default Ember.Controller.extend(
@computed("showAllAuthTokens", "model.user_auth_tokens") @computed("showAllAuthTokens", "model.user_auth_tokens")
authTokens(showAllAuthTokens, tokens) { authTokens(showAllAuthTokens, tokens) {
tokens.sort( tokens.sort((a, b) =>
(a, b) => a.is_active ? -1 : b.is_active ? 1 : b.seen_at.localeCompare(a.seen_at)
a.is_active
? -1
: b.is_active
? 1
: b.seen_at.localeCompare(a.seen_at)
); );
return showAllAuthTokens return showAllAuthTokens