summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--lib/redmine/views/builders.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index b35007360..bb54e92d8 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -531,7 +531,6 @@ Performance/RedundantBlockCall:
Exclude:
- 'app/controllers/application_controller.rb'
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
- - 'lib/redmine/views/builders.rb'
# Cop supports --auto-correct.
Performance/RedundantMatch:
diff --git a/lib/redmine/views/builders.rb b/lib/redmine/views/builders.rb
index b293b0428..2fa2f1af5 100644
--- a/lib/redmine/views/builders.rb
+++ b/lib/redmine/views/builders.rb
@@ -33,7 +33,7 @@ module Redmine
raise "No builder for format #{format}"
end
if block_given?
- block.call(builder)
+ yield(builder)
else
builder
end