Skip to content

Commit

Permalink
When WithAttribute is used, update Location (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Rumney committed Jul 28, 2021
1 parent ae0360e commit 9b94b3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/result/result.go
Expand Up @@ -183,5 +183,6 @@ func (r *Result) WithAttribute(attr block.Attribute) *Result {
}

r.RangeAnnotation = fmt.Sprintf("%s: %s", typeStr, raw)
r.Location = r.Range()
return r
}

0 comments on commit 9b94b3b

Please sign in to comment.