Skip to content

Commit ed3328a

Browse files
committed
chore: remove unused has method from cache
1 parent 0787fcc commit ed3328a

File tree

1 file changed

+1
-5
lines changed
  • v-next/hardhat/src/internal/builtin-plugins/solidity/build-system

1 file changed

+1
-5
lines changed

v-next/hardhat/src/internal/builtin-plugins/solidity/build-system/cache.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@ export class Cache {
1919
this.#path = path.join(basePath, namespace, version);
2020
}
2121

22-
public async has(key: string): Promise<boolean> {
23-
return exists(path.join(this.#path, key));
24-
}
25-
2622
public async setJson<T>(key: string, value: T): Promise<void> {
2723
const filePath = path.join(this.#path, key);
2824
await writeJsonFile(filePath, value);
2925
}
3026

3127
public async getJson<T>(key: string): Promise<T | undefined> {
3228
const filePath = path.join(this.#path, key);
33-
return (await this.has(key)) ? readJsonFile<T>(filePath) : undefined;
29+
return (await exists(filePath)) ? readJsonFile<T>(filePath) : undefined;
3430
}
3531

3632
public async clean(): Promise<void> {

0 commit comments

Comments
 (0)