Skip to content

Commit 4524e05

Browse files
committed
amclient: avoid using range-scoped variable
1 parent 57b63f4 commit 4524e05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/amclient/wait.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func WaitUntilStored(ctx context.Context, c *Client, transferID string) (SIPID s
6262
}
6363
var match *Job
6464
for _, job := range jobs {
65+
job := job
6566
if job.LinkID == workflowLinkStoreAIPID {
6667
match = &job
6768
break

0 commit comments

Comments
 (0)