aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/issues.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/api/issues.js
parent34b14e12bebafed93d21ac620e7b2b5dc3ef7d55 (diff)
downloadsonarqube-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.js10
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 };
});