Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tflint: Remove duplicate variable references #1072

Merged
merged 1 commit into from Mar 6, 2021

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Feb 28, 2021

Fixes #1063

lang.ReferencesInExpr returns variable references for the number of variable calls. In most cases, this is not a problem, but access to elements of the map also counts as a variable call, so multiple references may be returned for the same variable.

This PR avoids returning multiple references to the same variable by returning a map instead of a slice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate issues emitted for tags attributes inside of aws_instance modules
1 participant