Skip to content

Commit

Permalink
amclient: avoid using range-scoped variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Oct 29, 2019
1 parent 57b63f4 commit 4524e05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/amclient/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func WaitUntilStored(ctx context.Context, c *Client, transferID string) (SIPID s
}
var match *Job
for _, job := range jobs {
job := job
if job.LinkID == workflowLinkStoreAIPID {
match = &job
break
Expand Down

0 comments on commit 4524e05

Please sign in to comment.