remove redundant map

This commit is contained in:
Francis 2021-05-05 12:03:30 +02:00
parent 84dfdf596f
commit 6cb9b0a622
No known key found for this signature in database
GPG key ID: 071BEA4C2B10077C

View file

@ -17,7 +17,6 @@ module EventsHelper
Set.new(items Set.new(items
.find_all('/events/*/*') .find_all('/events/*/*')
.flat_map { |i| i[:tags] || [] }) .flat_map { |i| i[:tags] || [] })
.map{ |y| y.split.map(&:capitalize).join(' ') }
.to_a .to_a
.sort .sort
.uniq.map { |y| [y, items["/events/#{y.gsub(' ', '_')}.html"]]} .uniq.map { |y| [y, items["/events/#{y.gsub(' ', '_')}.html"]]}