github-vet / github-vet/rangeloop-pointer-findings
jenu9417/QCaller: api/bulk_create_contact.go; 7 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [jenu9417/QCaller](https://www.github.com/jenu9417/QCaller) at [api/bulk_create_contact.go](https://github.com/jenu9417/QCaller/blob/bb1c0197b331a752e3138dfd46f09d3353f8e46b/api/bulk_create_contact.go#L26-L32)
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 c is reassigned at line 27
[Click here to see the code in its original context.](https://github.com/jenu9417/QCaller/blob/bb1c0197b331a752e3138dfd46f09d3353f8e46b/api/bulk_create_contact.go#L26-L32)
Click here to show the 7 line(s) of Go which triggered the analyzer.
```go
for _, c := range request.Contacts {
contact := &c
if err := validater.Of(contact).Validate(); err != nil {
logger.Get().Errorf("Validation error. Err : %v", err)
return util.FailureResponse(ctx, response, err.HTTPCode, 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: bb1c0197b331a752e3138dfd46f09d3353f8e46b
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.