Publish inspection through one frozen history model
This commit is contained in:
@@ -34,11 +34,11 @@ func prepareDiffRegions(left, right *Inspection) ([]diffRegion, error) {
|
||||
deltas := compareConfigurationValues(left.final, right.final)
|
||||
regions := make([]diffRegion, 0, len(deltas))
|
||||
for _, delta := range deltas {
|
||||
leftNode, leftPresent := documentAtPathWithLookup(left.final, delta.path, left.immutableLookup)
|
||||
leftNode, leftPresent := documentAtPathWithLookup(left.final, delta.path, left.documentLookup())
|
||||
if !leftPresent {
|
||||
leftNode = nil
|
||||
}
|
||||
rightNode, rightPresent := documentAtPathWithLookup(right.final, delta.path, right.immutableLookup)
|
||||
rightNode, rightPresent := documentAtPathWithLookup(right.final, delta.path, right.documentLookup())
|
||||
if !rightPresent {
|
||||
rightNode = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user