Fix artifact types to be more accurate (#5022)

This commit is contained in:
Jonathan Tran
2025-01-13 15:02:55 -05:00
committed by GitHub
parent c35dea5e07
commit b65f7939f6
4 changed files with 50 additions and 37 deletions

View File

@ -137,7 +137,7 @@ See later source ranges for more context. about the sweep`,
{ key: artifact.pathId, types: ['path'] },
artifactGraph
)
if (!err(path)) {
if (!err(path) && path.sweepId) {
const sweep = getArtifactOfTypes(
{ key: path.sweepId, types: ['sweep'] },
artifactGraph