Skip to content

Commit

Permalink
skip nil arg
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Feb 27, 2014
1 parent 39c9747 commit bbee51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/commands_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def locales_opt(locales)
return i18n_task.locales if locales == ['all'] || locales == 'all'
if locales.present?
locales = Array(locales).map { |v| v.strip.split(/\s*[\+,:]\s*/).compact.presence if v.is_a?(String) }.flatten
locales = locales.map { |v| v == 'base' ? base_locale : v }
locales = locales.map(&:presence).compact.map { |v| v == 'base' ? base_locale : v }
locales
else
i18n_task.locales
Expand Down

0 comments on commit bbee51d

Please sign in to comment.