github-vet / github-vet/rangeloop-pointer-findings
viant/endly: system/cloud/aws/iam/service.go; 8 LoC
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- PR metrics pending
Description
Found a possible issue in [viant/endly](https://www.github.com/viant/endly) at [system/cloud/aws/iam/service.go](https://github.com/viant/endly/blob/96413b18c599d5c420b17c46af62aaaf26de807d/system/cloud/aws/iam/service.go#L229-L236)
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 arn was used in a composite literal at line 231
[Click here to see the code in its original context.](https://github.com/viant/endly/blob/96413b18c599d5c420b17c46af62aaaf26de807d/system/cloud/aws/iam/service.go#L229-L236)
Click here to show the 8 line(s) of Go which triggered the analyzer.
```go
for arn := range alreadyAttached {
if _, err = client.DetachRolePolicy(&iam.DetachRolePolicyInput{
PolicyArn: &arn,
RoleName: role.RoleName,
}); err != nil {
return false, 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: 96413b18c599d5c420b17c46af62aaaf26de807d
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.