Avoid metadata copies during scoped path enumeration
This commit is contained in:
@@ -59,7 +59,7 @@ func (v InspectionView) HistoricalPaths() []Path {
|
||||
return nil
|
||||
}
|
||||
var paths []Path
|
||||
for _, path := range v.inspection.Metadata().HistoricalPaths() {
|
||||
for _, path := range v.inspection.metadata.HistoricalPaths() {
|
||||
if pathContains(v.scope, path) {
|
||||
paths = append(paths, path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user