Refactor loadExtensionURL for readability.

This commit is contained in:
Karishma Chadha 2019-03-25 16:39:00 -04:00
parent efcb801fe3
commit 061b0b081f

View file

@ -149,9 +149,9 @@ class ExtensionManager {
const extension = builtinExtensions[extensionURL](); const extension = builtinExtensions[extensionURL]();
const extensionInstance = new extension(this.runtime); const extensionInstance = new extension(this.runtime);
return Promise.resolve(this._registerInternalExtension(extensionInstance)).then(serviceName => { const serviceName = this._registerInternalExtension(extensionInstance);
this._loadedExtensions.set(extensionURL, serviceName); this._loadedExtensions.set(extensionURL, serviceName);
}); return Promise.resolve();
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {