Skip to content

Commit e609ce0

Browse files
authored
Merge pull request #96 from dcarney-stripe/patch-1
Adds an end position for identifier when emitting diagnostics
2 parents b5bbf40 + a6dd933 commit e609ce0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/ineffassign/ineffassign.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func checkPath(pass *analysis.Pass) (interface{}, error) {
3535
for _, id := range chk.ineff {
3636
pass.Report(analysis.Diagnostic{
3737
Pos: id.Pos(),
38+
End: id.End(),
3839
Message: fmt.Sprintf("ineffectual assignment to %s", id.Name),
3940
})
4041
}

0 commit comments

Comments
 (0)