From 93645a279e68b5f23d13c340d96ede3f65aff635 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 21 Aug 2024 00:46:15 +0000 Subject: Use anonymous block forwarding introduced in Ruby 3.1 (#38585). git-svn-id: https://svn.redmine.org/redmine/trunk@22973 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/helpers/issues_helper.rb') diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 5661cf377..1455fa1c5 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -22,7 +22,7 @@ module IssuesHelper include Redmine::Export::PDF::IssuesPdfHelper include IssueStatusesHelper - def issue_list(issues, &block) + def issue_list(issues, &) ancestors = [] issues.each do |issue| while ancestors.any? && @@ -34,7 +34,7 @@ module IssuesHelper end end - def grouped_issue_list(issues, query, &block) + def grouped_issue_list(issues, query, &) ancestors = [] grouped_query_results(issues, query) do |issue, group_name, group_count, group_totals| while ancestors.any? && -- cgit v1.2.3