diff --git a/core/src/config-store/base.ts b/core/src/config-store/base.ts index 5a9c89fdde..c4e277ffb0 100644 --- a/core/src/config-store/base.ts +++ b/core/src/config-store/base.ts @@ -30,18 +30,13 @@ export abstract class ConfigStore> { async get>(section: S): Promise[S]> async get, K extends keyof I[S]>(section: S, key: K): Promise[S][K]> async get, K extends keyof I[S]>(section?: S, key?: K) { - const release = await this.lock() - try { - const config = await this.readConfig() - if (section === undefined) { - return config - } else if (key === undefined) { - return config[section] - } else { - return config[section][key] - } - } finally { - await release() + const config = await this.readConfig() + if (section === undefined) { + return config + } else if (key === undefined) { + return config[section] + } else { + return config[section][key] } }