1
0
Fork 0
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:
Sam Pinkus 2025-01-08 16:09:52 +10:00
parent 1f3a570584
commit 0024ce0d14
4 changed files with 14 additions and 10 deletions

View file

@ -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<{