mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Simplify style.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
parent
66b8a9130c
commit
5452405692
@ -352,17 +352,16 @@ export class ExtensionLoader {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Return ExtensionLoading[]
|
// Return ExtensionLoading[]
|
||||||
return extensions
|
return extensions.map(extension => {
|
||||||
.map(extension => {
|
const loaded = extension.instance.enable(register).catch((err) => {
|
||||||
const loaded = extension.instance.enable(register).catch((err) => {
|
logger.error(`${logModule}: failed to enable`, { ext: extension, err });
|
||||||
logger.error(`${logModule}: failed to enable`, { ext: extension, err });
|
|
||||||
});
|
|
||||||
|
|
||||||
return {
|
|
||||||
isBundled: extension.isBundled,
|
|
||||||
loaded,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return {
|
||||||
|
isBundled: extension.isBundled,
|
||||||
|
loaded,
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected autoInitExtensions(register: (ext: LensExtension) => Promise<Disposer[]>) {
|
protected autoInitExtensions(register: (ext: LensExtension) => Promise<Disposer[]>) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user