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

@ -6,11 +6,13 @@ import * as core from '@actions/core';
import CacheDistributor from './cache-distributor';
class PipenvCache extends CacheDistributor {
protected readonly packageManager = 'pipenv';
constructor(
private pythonVersion: string,
protected cacheDependencyPath: string = '**/Pipfile.lock'
protected readonly cacheDependencyPath: string = '**/Pipfile.lock'
) {
super('pipenv', cacheDependencyPath);
super();
}
protected async getCacheGlobalDirectories() {