]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at lib/redmine/my_page.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:30:23 +0000 (12:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:30:23 +0000 (12:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20282 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/my_page.rb

index cfd7407e7ba8bf26c755d8a944191d50d6fb3fa0..8dd63a326e247cb1c90e625d4952540d70fdf206 100644 (file)
@@ -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