diff options
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/extensions/utils.js')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/extensions/utils.js | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/app/components/extensions/utils.js b/server/sonar-web/src/main/js/app/components/extensions/utils.js index 6bd8058fa85..7294bea0c83 100644 --- a/server/sonar-web/src/main/js/app/components/extensions/utils.js +++ b/server/sonar-web/src/main/js/app/components/extensions/utils.js @@ -29,20 +29,19 @@ const installScript = (key: string) => { }); }; -export const getExtensionStart = (key: string) => ( - new Promise((resolve, reject) => { - const fromCache = getExtensionFromCache(key); - if (fromCache) { - return resolve(fromCache); - } +export const getExtensionStart = (key: string) => + new Promise((resolve, reject) => { + const fromCache = getExtensionFromCache(key); + if (fromCache) { + return resolve(fromCache); + } - installScript(key).then(() => { - const start = getExtensionFromCache(key); - if (start) { - resolve(start); - } else { - reject(); - } - }); - }) -); + installScript(key).then(() => { + const start = getExtensionFromCache(key); + if (start) { + resolve(start); + } else { + reject(); + } + }); + }); |