Rubocop autocorrect Performance/RedundantBlockCall issue and remove it from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-16 00:30:36 +02:00
parent c88d822330
commit f6863f5ea0
2 changed files with 1 additions and 7 deletions

View File

@@ -87,12 +87,6 @@ Metrics/ModuleLength:
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity:
Max: 11 Max: 11
# Offense count: 1
# Cop supports --auto-correct.
Performance/RedundantBlockCall:
Exclude:
- 'app/mailers/mailer.rb'
# Offense count: 4 # Offense count: 4
# Cop supports --auto-correct. # Cop supports --auto-correct.
Performance/RedundantMatch: Performance/RedundantMatch:

View File

@@ -113,7 +113,7 @@ class Mailer < ApplicationMailer
def with_user(user, &block) def with_user(user, &block)
I18n.with_locale(user.locale) do I18n.with_locale(user.locale) do
block.call yield
end end
end end
end end