mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Simplify object. Remove unnecessary action.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
parent
5452405692
commit
16e8e6cf7a
@ -322,10 +322,8 @@ export class ExtensionLoader {
|
|||||||
this.instances.set(extId, instance);
|
this.instances.set(extId, instance);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
extId,
|
|
||||||
instance,
|
instance,
|
||||||
installedExtension: extension,
|
installedExtension: extension,
|
||||||
isBundled: extension.isBundled,
|
|
||||||
activated: instance.activate(),
|
activated: instance.activate(),
|
||||||
};
|
};
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
@ -358,7 +356,7 @@ export class ExtensionLoader {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isBundled: extension.isBundled,
|
isBundled: extension.installedExtension.isBundled,
|
||||||
loaded,
|
loaded,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
@ -112,7 +112,6 @@ export class LensExtension {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
|
||||||
async activate(): Promise<void> {
|
async activate(): Promise<void> {
|
||||||
return this.onActivate();
|
return this.onActivate();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user