Skip to content

Commit

Permalink
Add missing return.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 31, 2025
1 parent a8f5058 commit a50954b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function __construct(
*
* @return bool
*/
protected function isPipelineActive(): bool
protected function isPipelineAvailable(): bool
{
try {
$cacheDir = $this->getResourceCacheDir();
Expand All @@ -108,6 +108,7 @@ protected function isPipelineActive(): bool
$this->logError("Cannot write to $cacheDir; disabling asset pipeline.");
return false;
}
return true;
}

/**
Expand Down Expand Up @@ -655,7 +656,7 @@ protected function processGroupedAssets(array $groups, string $type): array
*/
protected function processForPipeline(array $assets, string $type): array
{
if (!$this->isPipelineEnabledForType($type) || !$this->isPipelineActive()) {
if (!$this->isPipelineEnabledForType($type) || !$this->isPipelineAvailable()) {
return $assets;
}

Expand Down

0 comments on commit a50954b

Please sign in to comment.