From a892a7585fd987c6bdf5821d0010c3eb95053932 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 7 Nov 2020 12:30:23 +0000 Subject: [PATCH] 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 --- lib/redmine/my_page.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5