Skip to content

Commit 3a43aee

Browse files
committed
Fix
1 parent e36a3e0 commit 3a43aee

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/scripts/diffPrefixes.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@
3030
}
3131

3232
$pathWithLine = substr($diffLine, 1);
33-
[$path, $lineNumber] = explode(':', $pathWithLine);
33+
$pathParts = explode(':', $pathWithLine);
34+
$path = $pathParts[0];
35+
$lineNumber = $pathParts[1] ?? null;
36+
if ($lineNumber === null) {
37+
echo $diffLine . "\n";
38+
continue;
39+
}
3440
$oldFilePath = $oldDir . '/' . $path;
3541
if (!is_file($oldFilePath)) {
3642
continue;

0 commit comments

Comments
 (0)