Skip to content

Commit 14c9389

Browse files
committed
Micro optimization
1 parent 9af2e9a commit 14c9389

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Analyser/ResultCache/ResultCacheManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ public function restore(array $allAnalysedFiles, bool $debug, Output $output, ?s
184184
}
185185

186186
$cachedFileExportedNodes = $filteredExportedNodes[$analysedFile];
187+
if (count($dependentFiles) === 0) {
188+
continue;
189+
}
187190
if (!$this->exportedNodesChanged($analysedFile, $cachedFileExportedNodes)) {
188191
continue;
189192
}

0 commit comments

Comments
 (0)