Skip to content

Commit

Permalink
Rubocop: Useless variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Feb 10, 2017
1 parent c176d63 commit 67fbb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/users_helper.rb
Expand Up @@ -6,7 +6,7 @@
module UsersHelper
def language_for(user)
if user.preference[:locale]
locale, language = languages.detect { |locale, _language| locale == user.preference[:locale] }
_locale, language = languages.detect { |locale, _language| locale == user.preference[:locale] }
end
language || "English"
end
Expand Down

0 comments on commit 67fbb7f

Please sign in to comment.