mirror of https://github.com/mastodon/mastodon
Remove un-needed edge case sort condition in languages helper (#31724)
This commit is contained in:
parent
219458d7d4
commit
c9641c8070
|
@ -238,9 +238,7 @@ module LanguagesHelper
|
|||
|
||||
# Helper for self.sorted_locale_keys
|
||||
private_class_method def self.locale_name_for_sorting(locale)
|
||||
if locale.blank? || locale == 'und'
|
||||
'000'
|
||||
elsif (supported_locale = SUPPORTED_LOCALES[locale.to_sym])
|
||||
if (supported_locale = SUPPORTED_LOCALES[locale.to_sym])
|
||||
ASCIIFolding.new.fold(supported_locale[1]).downcase
|
||||
elsif (regional_locale = REGIONAL_LOCALE_NAMES[locale.to_sym])
|
||||
ASCIIFolding.new.fold(regional_locale).downcase
|
||||
|
|
Loading…
Reference in New Issue