Link: Do not export pointer to loop variable

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-13 01:57:03 +02:00
parent aa547d137f
commit 6a154008f2
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -319,7 +319,8 @@ func (c Client) ModifyChannelInformation(ctx context.Context, broadcasterName st
// Multiple matches: Search for exact one // Multiple matches: Search for exact one
for _, c := range categories { for _, c := range categories {
if c.Name == *game { if c.Name == *game {
data.GameID = &c.ID gid := c.ID
data.GameID = &gid
break break
} }
} }