Skip to content

Commit 5baf301

Browse files
committed
grabbing the raw pattern data from the pattern store data instead of going to disk
1 parent 6ea1016 commit 5baf301

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/PatternLab/PatternData/Helpers/LineageHelper.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,8 @@ public function run() {
4545
if (($patternStoreData["category"] == "pattern") && (!isset($patternStoreData["pseudo"]))) {
4646

4747
$patternLineages = array();
48-
$fileName = $patternStoreData["pathName"].".".$patternExtension;
49-
$fileNameFull = $patternSourceDir."/".$fileName;
50-
51-
if (file_exists($fileNameFull)) {
52-
$foundLineages = $this->findLineages($fileNameFull);
53-
}
48+
$fileData = isset($patternStoreData["patternRaw"]) ? $patternStoreData["patternRaw"] : "";
49+
$foundLineages = $this->findLineages($fileData);
5450

5551
if (!empty($foundLineages)) {
5652

0 commit comments

Comments
 (0)