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

Fix the unused variable warning #21382

Merged
merged 1 commit into from
Aug 26, 2015
Merged

Fix the unused variable warning #21382

merged 1 commit into from
Aug 26, 2015

Conversation

akihiro17
Copy link
Contributor

This fixes the following warning.

warning: assigned but unused variable - index_definition

@@ -240,8 +240,7 @@ def test_migrate_nested_revert_whole_migration
assert !revert.connection.table_exists?("horses")
end

def test_migrate_revert_change_column_default
index_definition = ["horses", [:name, :color]]
def test_migrate_revert_change_column_default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the white-spaces at the end of the line please ?

This fixes the following warning.

```ruby
warning: assigned but unused variable - index_definition
```
senny added a commit that referenced this pull request Aug 26, 2015
Fix the unused variable warning
@senny senny merged commit e47e8e9 into rails:master Aug 26, 2015
@senny
Copy link
Member

senny commented Aug 26, 2015

@akihiro17 thank you 💛

@akihiro17
Copy link
Contributor Author

@senny @robin850 Thank you very much.

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.

None yet

3 participants