mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 20:01:17 +00:00
Link: Do not export pointer to loop variable
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
aa547d137f
commit
6a154008f2
1 changed files with 2 additions and 1 deletions
|
@ -319,7 +319,8 @@ func (c Client) ModifyChannelInformation(ctx context.Context, broadcasterName st
|
|||
// Multiple matches: Search for exact one
|
||||
for _, c := range categories {
|
||||
if c.Name == *game {
|
||||
data.GameID = &c.ID
|
||||
gid := c.ID
|
||||
data.GameID = &gid
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue