From 3988f2dade8a75cb642db8c239097bfcf8943a0d Mon Sep 17 00:00:00 2001 From: yhirano Date: Mon, 1 May 2017 23:31:02 +0900 Subject: Fix Rubocop offences (#2630) * disable Bundler/OrderedGems * fix rubocop Lint/UselessAssignment * fix rubocop Style/BlockDelimiters * fix rubocop Style/AlignHash * fix rubocop Style/AlignParameters, Style/EachWithObject * fix rubocop Style/SpaceInLambdaLiteral --- app/controllers/concerns/localized.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/concerns/localized.rb') diff --git a/app/controllers/concerns/localized.rb b/app/controllers/concerns/localized.rb index 44762df2a..5501b6793 100644 --- a/app/controllers/concerns/localized.rb +++ b/app/controllers/concerns/localized.rb @@ -17,9 +17,9 @@ module Localized end def default_locale - ENV.fetch('DEFAULT_LOCALE') { + ENV.fetch('DEFAULT_LOCALE') do user_supplied_locale || I18n.default_locale - } + end end def user_supplied_locale -- cgit