From 2b09acb606bc98d81ac64021ced3a8741eef246f Mon Sep 17 00:00:00 2001 From: stereobooster Date: Wed, 8 Nov 2017 10:09:24 +0100 Subject: [PATCH] Fix CR notes --- lib/i18n/backend/simple.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/i18n/backend/simple.rb b/lib/i18n/backend/simple.rb index 0ccde48c..ce690484 100644 --- a/lib/i18n/backend/simple.rb +++ b/lib/i18n/backend/simple.rb @@ -30,9 +30,9 @@ def initialized? # level of the hash. def store_translations(locale, data, options = {}) if I18n.available_locales_initialized? && - I18n.available_locales.include?(locale.to_sym) == false && - I18n.available_locales.include?(locale.to_s) == false - return translations + !I18n.available_locales.include?(locale.to_sym) && + !I18n.available_locales.include?(locale.to_s) + return data end locale = locale.to_sym translations[locale] ||= {}