Skip to content

Commit

Permalink
copy blame to new var and use that pointer to fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdevivo committed Dec 8, 2019
1 parent 672b0c4 commit 1f4d311
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/todos/todos.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ func (t *ToDos) FindBlame(ctx context.Context, dir string) error {
for line, blame := range blames {
for _, todo := range todos {
if todo.StartLocation.Line == line {
todo.Blame = &blame
b := blame
todo.Blame = &b
}
}
}
Expand Down

0 comments on commit 1f4d311

Please sign in to comment.