Skip to content

Commit

Permalink
Use AllData
Browse files Browse the repository at this point in the history
  • Loading branch information
toastwaffle committed Dec 13, 2024
1 parent 52737c5 commit 8a93964
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/core/build_target.go
Original file line number Diff line number Diff line change
Expand Up @@ -1206,18 +1206,11 @@ func (target *BuildTarget) ProvideFor(other *BuildTarget) []BuildLabel {
}

func (target *BuildTarget) isDataFor(other *BuildTarget) bool {
for _, data := range other.Data {
for _, data := range other.AllData() {
if label, ok := data.Label(); ok && label == target.Label {
return true
}
}
for _, v := range other.NamedData {
for _, data := range v {
if label, ok := data.Label(); ok && label == target.Label {
return true
}
}
}
return false
}

Expand Down

0 comments on commit 8a93964

Please sign in to comment.