Skip to content

Commit 1f4d311

Browse files
committed
copy blame to new var and use that pointer to fix bug
1 parent 672b0c4 commit 1f4d311

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/todos/todos.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ func (t *ToDos) FindBlame(ctx context.Context, dir string) error {
142142
for line, blame := range blames {
143143
for _, todo := range todos {
144144
if todo.StartLocation.Line == line {
145-
todo.Blame = &blame
145+
b := blame
146+
todo.Blame = &b
146147
}
147148
}
148149
}

0 commit comments

Comments
 (0)