aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/system.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/system.js')
-rw-r--r--server/sonar-web/src/main/js/api/system.js25
1 files changed, 11 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/js/api/system.js b/server/sonar-web/src/main/js/api/system.js
index dc02de9b717..2d0420b05c0 100644
--- a/server/sonar-web/src/main/js/api/system.js
+++ b/server/sonar-web/src/main/js/api/system.js
@@ -43,20 +43,17 @@ export function restart() {
const POLLING_INTERVAL = 2000;
function pollStatus(cb) {
- setTimeout(
- () => {
- getSystemStatus()
- .then(r => {
- if (r.status === 'UP') {
- cb();
- } else {
- pollStatus(cb);
- }
- })
- .catch(() => pollStatus(cb));
- },
- POLLING_INTERVAL
- );
+ setTimeout(() => {
+ getSystemStatus()
+ .then(r => {
+ if (r.status === 'UP') {
+ cb();
+ } else {
+ pollStatus(cb);
+ }
+ })
+ .catch(() => pollStatus(cb));
+ }, POLLING_INTERVAL);
}
function promiseStatus() {