From 201847de4d282acafd5fb8c969f077d713d1bdf1 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 8 Dec 2015 16:48:52 +0100 Subject: improve code quality --- server/sonar-web/src/main/js/apps/users/tokens-view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/users/tokens-view.js') diff --git a/server/sonar-web/src/main/js/apps/users/tokens-view.js b/server/sonar-web/src/main/js/apps/users/tokens-view.js index f3277b1fea0..4dc0b77bf0b 100644 --- a/server/sonar-web/src/main/js/apps/users/tokens-view.js +++ b/server/sonar-web/src/main/js/apps/users/tokens-view.js @@ -52,8 +52,8 @@ export default Modal.extend({ onRevokeTokenFormSubmit(e) { e.preventDefault(); - let tokenName = $(e.currentTarget).data('token'), - token = _.findWhere(this.tokens, { name: `${tokenName}` }); + let tokenName = $(e.currentTarget).data('token'); + let token = _.findWhere(this.tokens, { name: `${tokenName}` }); if (token) { if (token.deleting) { revokeToken(this.model.id, tokenName).then(this.requestTokens.bind(this)); -- cgit v1.2.3