lib/countries/sources/cldr/subdivision_updater.rb in countries-5.0.2 vs lib/countries/sources/cldr/subdivision_updater.rb in countries-5.1.0
- old
+ new
@@ -17,10 +17,10 @@
def update_locale(file_path)
language_data = Nokogiri::XML(File.read(file_path))
language_code = File.basename(file_path, '.*')
subdivisions = language_data.css('subdivision')
- next if subdivisions.empty?
+ return if subdivisions.empty?
last_country_code_seen = nil
subdivisions.each_with_index do |subdivision, index|
subdivision = Sources::CLDR::Subdivision.new(language_code: language_code, xml: subdivision)