mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
chore(loops): remove loop var copy EE-7342 (#12023)
This commit is contained in:
parent
6e7a42727a
commit
7fd1a644a6
7 changed files with 61 additions and 48 deletions
|
@ -18,9 +18,9 @@ func EdgeStackRelatedEndpoints(edgeGroupIDs []portainer.EdgeGroupID, endpoints [
|
|||
var edgeGroup *portainer.EdgeGroup
|
||||
|
||||
for _, group := range edgeGroups {
|
||||
group := group
|
||||
if group.ID == edgeGroupID {
|
||||
edgeGroup = &group
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue