mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-22 08:45:33 +08:00
Fix
This commit is contained in:
parent
9ee6dab9c2
commit
596040d10f
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -6275,11 +6275,11 @@ function getMultiPathLCA(searchPaths) {
|
|||||||
// Loop over all the search paths until there is a non-common ancestor or we go out of bounds
|
// Loop over all the search paths until there is a non-common ancestor or we go out of bounds
|
||||||
while (splitIndex < smallestPathLength) {
|
while (splitIndex < smallestPathLength) {
|
||||||
if (!isPathTheSame()) {
|
if (!isPathTheSame()) {
|
||||||
// if all are the same, add to the end result & increment the index
|
|
||||||
commonPaths.push(splitPaths[0][splitIndex]);
|
|
||||||
splitIndex++;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// if all are the same, add to the end result & increment the index
|
||||||
|
commonPaths.push(splitPaths[0][splitIndex]);
|
||||||
|
splitIndex++;
|
||||||
}
|
}
|
||||||
return path.join(...commonPaths);
|
return path.join(...commonPaths);
|
||||||
}
|
}
|
||||||
|
@ -67,11 +67,11 @@ function getMultiPathLCA(searchPaths: string[]): string {
|
|||||||
// Loop over all the search paths until there is a non-common ancestor or we go out of bounds
|
// Loop over all the search paths until there is a non-common ancestor or we go out of bounds
|
||||||
while (splitIndex < smallestPathLength) {
|
while (splitIndex < smallestPathLength) {
|
||||||
if (!isPathTheSame()) {
|
if (!isPathTheSame()) {
|
||||||
// if all are the same, add to the end result & increment the index
|
|
||||||
commonPaths.push(splitPaths[0][splitIndex])
|
|
||||||
splitIndex++
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
// if all are the same, add to the end result & increment the index
|
||||||
|
commonPaths.push(splitPaths[0][splitIndex])
|
||||||
|
splitIndex++
|
||||||
}
|
}
|
||||||
return path.join(...commonPaths)
|
return path.join(...commonPaths)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user