github-vet / github-vet/rangeloop-pointer-findings
shurcooL/issuesapp: app.go; 9 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [shurcooL/issuesapp](https://www.github.com/shurcooL/issuesapp) at [app.go](https://github.com/shurcooL/issuesapp/blob/926c51c28eca69d7a945f378982997804d2d534a/app.go#L70-L78)
Below is the message reported by the analyzer for this snippet of code. Beware that the analyzer only reports the first issue it finds, so please do not limit your consideration to the contents of the below message.
> reference to reaction was used in a composite literal at line 73
[Click here to see the code in its original context.](https://github.com/shurcooL/issuesapp/blob/926c51c28eca69d7a945f378982997804d2d534a/app.go#L70-L78)
Click here to show the 9 line(s) of Go which triggered the analyzer.
```go
for _, reaction := range []reactions.EmojiID{"grinning", "+1", "construction_worker"} {
_, err = service.EditComment(context.Background(), repo, 1, issues.CommentRequest{
ID: 0,
Reaction: &reaction,
})
if err != nil {
return err
}
}
```
Leave a reaction on this issue to contribute to the project by classifying this instance as a **Bug** :-1:, **Mitigated** :+1:, or **Desirable Behavior** :rocket:
See the descriptions of the classifications [here](https://github.com/github-vet/rangeclosure-findings#how-can-i-help) for more information.
commit ID: 926c51c28eca69d7a945f378982997804d2d534a
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.