1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/date] Remove unneeded line in update-abbr

https://github.com/ruby/date/commit/ae14e5f293
This commit is contained in:
Jeremy Evans 2019-10-31 20:55:57 -07:00 committed by Nobuyoshi Nakada
parent 469545307f
commit b2126d3fcf

View file

@ -29,7 +29,6 @@ lines.select{|l| l.include?(',')}.
map{|l| l.split(',', 2)[0]}.
each{|a| h.delete(a)}
h.sort.map{|k,v| "#{k},#{v}"}
lines.insert(-2, h.sort.map{|k,v| "#{k},#{v}\n"})
lines.flatten!
File.write('ext/date/zonetab.list', lines.join)