mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-08 20:38:19 +02:00
Readability improvement: Move CacheDistributor constructor params to readonly abstract fields of concrete cache implementations. Remove empty CacheDistributor constructor.
This commit is contained in:
parent
1f3a570584
commit
0024ce0d14
4 changed files with 14 additions and 10 deletions
|
@ -10,10 +10,8 @@ export enum State {
|
|||
|
||||
abstract class CacheDistributor {
|
||||
protected CACHE_KEY_PREFIX = 'setup-python';
|
||||
constructor(
|
||||
protected packageManager: string,
|
||||
protected cacheDependencyPath: string
|
||||
) {}
|
||||
protected abstract readonly packageManager: string;
|
||||
protected abstract readonly cacheDependencyPath: string;
|
||||
|
||||
protected abstract getCacheGlobalDirectories(): Promise<string[]>;
|
||||
protected abstract computeKeys(): Promise<{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue