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/ce.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/ce.js')
-rw-r--r-- | server/sonar-web/src/main/js/api/ce.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/api/ce.js b/server/sonar-web/src/main/js/api/ce.js index edabd6e9ea7..c33cd819404 100644 --- a/server/sonar-web/src/main/js/api/ce.js +++ b/server/sonar-web/src/main/js/api/ce.js @@ -1,32 +1,32 @@ import $ from 'jquery'; export function getQueue (data) { - let url = baseUrl + '/api/ce/queue'; + const url = baseUrl + '/api/ce/queue'; return $.get(url, data); } export function getActivity (data) { - let url = baseUrl + '/api/ce/activity'; + const url = baseUrl + '/api/ce/activity'; return $.get(url, data); } export function getTask (id) { - let url = baseUrl + '/api/ce/task'; + const url = baseUrl + '/api/ce/task'; return $.get(url, { id }); } export function cancelTask (id) { - let url = baseUrl + '/api/ce/cancel'; + const url = baseUrl + '/api/ce/cancel'; return $.post(url, { id }).then(getTask.bind(null, id)); } export function cancelAllTasks () { - let url = baseUrl + '/api/ce/cancel_all'; + const url = baseUrl + '/api/ce/cancel_all'; return $.post(url); } export function getTasksForComponent(componentId) { - let url = baseUrl + '/api/ce/component'; - let data = { componentId }; + const url = baseUrl + '/api/ce/component'; + const data = { componentId }; return new Promise((resolve) => $.get(url, data).done(resolve)); } |