mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove non-security bug fix
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f185c08682
commit
07d829af33
@ -126,7 +126,7 @@ export class HelmRepoManager extends Singleton {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public async repositories(previousAttempt = false): Promise<HelmRepo[]> {
|
public async repositories(): Promise<HelmRepo[]> {
|
||||||
try {
|
try {
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
await this.init();
|
await this.init();
|
||||||
@ -135,13 +135,9 @@ export class HelmRepoManager extends Singleton {
|
|||||||
const { repositories } = await this.readConfig();
|
const { repositories } = await this.readConfig();
|
||||||
|
|
||||||
if (!repositories.length) {
|
if (!repositories.length) {
|
||||||
if (previousAttempt) {
|
|
||||||
throw new Error("Previous add repo called did not add repo");
|
|
||||||
}
|
|
||||||
|
|
||||||
await HelmRepoManager.addRepo({ name: "bitnami", url: "https://charts.bitnami.com/bitnami" });
|
await HelmRepoManager.addRepo({ name: "bitnami", url: "https://charts.bitnami.com/bitnami" });
|
||||||
|
|
||||||
return await this.repositories(true);
|
return await this.repositories();
|
||||||
}
|
}
|
||||||
|
|
||||||
return repositories.map(repo => ({
|
return repositories.map(repo => ({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user