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

Make variable binding friendly to avoid warning #20

Merged
merged 1 commit into from
Nov 23, 2019

Conversation

bronzdoc
Copy link
Contributor

Ruby thinks ttable is unused since is not used in the current block. In this case the variable is used in the binding context.

To bypass this warning we can rename the variable to start with an _

rake test
warning: assigned but unused variable - ttable
....

```
warning: assigned but unused variable - ttable
```
@bronzdoc bronzdoc requested a review from etagwerker November 22, 2019 19:37
@etagwerker etagwerker merged commit 3590a8d into master Nov 23, 2019
@etagwerker etagwerker deleted the remove_unused_variable_warning branch November 23, 2019 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants