Skip to content

Commit

Permalink
Remove warning: assigned but unused variable
Browse files Browse the repository at this point in the history
```
/home/runner/work/i18n/i18n/test/backend/cache_test.rb:65: warning: assigned but unused variable - cache_key
```
  • Loading branch information
mishina2228 committed Jan 29, 2022
1 parent f33af4f commit cf52520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/backend/cache_test.rb
Expand Up @@ -62,7 +62,7 @@ def teardown
I18n.t(:missing, :scope => :foo, :extra => true)
assert_equal 1, I18n.cache_store.instance_variable_get(:@data).size

cache_key, entry = I18n.cache_store.instance_variable_get(:@data).first
_, entry = I18n.cache_store.instance_variable_get(:@data).first
assert_equal({ scope: :foo }, entry.value.options)
end

Expand Down

0 comments on commit cf52520

Please sign in to comment.