From 1cee8a86f604be42ccf1d96926c5d8a9cd582680 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 26 Feb 2019 11:24:02 +0100 Subject: [PATCH] fix prettier (#7071) --- .../discourse/controllers/preferences/account.js.es6 | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/preferences/account.js.es6 b/app/assets/javascripts/discourse/controllers/preferences/account.js.es6 index 495d1194855..9c58078ecf3 100644 --- a/app/assets/javascripts/discourse/controllers/preferences/account.js.es6 +++ b/app/assets/javascripts/discourse/controllers/preferences/account.js.es6 @@ -106,13 +106,8 @@ export default Ember.Controller.extend( @computed("showAllAuthTokens", "model.user_auth_tokens") authTokens(showAllAuthTokens, tokens) { - tokens.sort( - (a, b) => - a.is_active - ? -1 - : b.is_active - ? 1 - : b.seen_at.localeCompare(a.seen_at) + tokens.sort((a, b) => + a.is_active ? -1 : b.is_active ? 1 : b.seen_at.localeCompare(a.seen_at) ); return showAllAuthTokens