From: Toshi MARUYAMA Date: Sat, 7 Nov 2020 12:30:23 +0000 (+0000) Subject: use "do end" instead of {} at lib/redmine/my_page.rb X-Git-Tag: 4.2.0~535 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a892a7585fd987c6bdf5821d0010c3eb95053932;p=redmine.git use "do end" instead of {} at lib/redmine/my_page.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20282 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/my_page.rb b/lib/redmine/my_page.rb index cfd7407e7..8dd63a326 100644 --- a/lib/redmine/my_page.rb +++ b/lib/redmine/my_page.rb @@ -48,11 +48,11 @@ module Redmine def self.block_options(blocks_in_use=[]) options = [] blocks.each do |block, block_options| - indexes = blocks_in_use.map {|n| + indexes = blocks_in_use.map do |n| if n =~ /\A#{block}(__(\d+))?\z/ $2.to_i end - }.compact + end.compact occurs = indexes.size block_id = indexes.any? ? "#{block}__#{indexes.max + 1}" : block