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 Original file line number Diff line number Diff line change @@ -19,18 +19,14 @@ export class Cache {
19
19
this . #path = path . join ( basePath , namespace , version ) ;
20
20
}
21
21
22
- public async has ( key : string ) : Promise < boolean > {
23
- return exists ( path . join ( this . #path, key ) ) ;
24
- }
25
-
26
22
public async setJson < T > ( key : string , value : T ) : Promise < void > {
27
23
const filePath = path . join ( this . #path, key ) ;
28
24
await writeJsonFile ( filePath , value ) ;
29
25
}
30
26
31
27
public async getJson < T > ( key : string ) : Promise < T | undefined > {
32
28
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 ;
34
30
}
35
31
36
32
public async clean ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments