(
getDiffFn: GetDiffFn,
cacheTimeSeconds?: number,
)
| 16 | } |
| 17 | |
| 18 | public static getInstance( |
| 19 | getDiffFn: GetDiffFn, |
| 20 | cacheTimeSeconds?: number, |
| 21 | ): GitDiffCache { |
| 22 | if (!GitDiffCache.instance) { |
| 23 | GitDiffCache.instance = new GitDiffCache(getDiffFn, cacheTimeSeconds); |
| 24 | } |
| 25 | return GitDiffCache.instance; |
| 26 | } |
| 27 | |
| 28 | private async getDiffPromise(): Promise<string[]> { |
| 29 | try { |
no outgoing calls
no test coverage detected