aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/tokens-view.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-08 16:48:52 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-08 16:48:52 +0100
commit201847de4d282acafd5fb8c969f077d713d1bdf1 (patch)
tree2ee51f526ed63d2620a7b8faef8fac69b74da0fc /server/sonar-web/src/main/js/apps/users/tokens-view.js
parent34b14e12bebafed93d21ac620e7b2b5dc3ef7d55 (diff)
downloadsonarqube-201847de4d282acafd5fb8c969f077d713d1bdf1.tar.gz
sonarqube-201847de4d282acafd5fb8c969f077d713d1bdf1.zip
improve code quality
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/tokens-view.js')
-rw-r--r--server/sonar-web/src/main/js/apps/users/tokens-view.js4
1 files changed, 2 insertions, 2 deletions
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));