diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-08 16:48:52 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-08 16:48:52 +0100 |
commit | 201847de4d282acafd5fb8c969f077d713d1bdf1 (patch) | |
tree | 2ee51f526ed63d2620a7b8faef8fac69b74da0fc /server/sonar-web/src/main/js/api/issues.js | |
parent | 34b14e12bebafed93d21ac620e7b2b5dc3ef7d55 (diff) | |
download | sonarqube-201847de4d282acafd5fb8c969f077d713d1bdf1.tar.gz sonarqube-201847de4d282acafd5fb8c969f077d713d1bdf1.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/src/main/js/api/issues.js')
-rw-r--r-- | server/sonar-web/src/main/js/api/issues.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/api/issues.js b/server/sonar-web/src/main/js/api/issues.js index 07b7d1e836a..106b20903b3 100644 --- a/server/sonar-web/src/main/js/api/issues.js +++ b/server/sonar-web/src/main/js/api/issues.js @@ -4,8 +4,8 @@ import { getJSON } from '../helpers/request.js'; export function getFacets (query, facets) { - let url = baseUrl + '/api/issues/search'; - let data = _.extend({}, query, { facets: facets.join(), ps: 1, additionalFields: '_all' }); + const url = baseUrl + '/api/issues/search'; + const data = _.extend({}, query, { facets: facets.join(), ps: 1, additionalFields: '_all' }); return getJSON(url, data).then(r => { return { facets: r.facets, response: r }; }); @@ -31,7 +31,7 @@ export function getTags (query) { export function extractAssignees (facet, response) { return facet.map(item => { - let user = _.findWhere(response.users, { login: item.val }); + const user = _.findWhere(response.users, { login: item.val }); return _.extend(item, { user }); }); } @@ -43,8 +43,8 @@ export function getAssignees (query) { export function getIssuesCount (query) { - let url = baseUrl + '/api/issues/search'; - let data = _.extend({}, query, { ps: 1, facetMode: 'debt' }); + const url = baseUrl + '/api/issues/search'; + const data = _.extend({}, query, { ps: 1, facetMode: 'debt' }); return getJSON(url, data).then(r => { return { issues: r.total, debt: r.debtTotal }; }); |