From fb7173a7b904c017dd219d7818d13fe157c0b50a Mon Sep 17 00:00:00 2001 From: Martin Gruner Date: Fri, 9 Jul 2021 13:24:41 +0200 Subject: [PATCH] Applied rubocop suggestions. --- app/models/channel/driver/sms/twilio.rb | 2 +- app/models/channel/filter/follow_up_check.rb | 2 +- app/models/user/avatar.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/channel/driver/sms/twilio.rb b/app/models/channel/driver/sms/twilio.rb index da7c36e2d..1c482b843 100644 --- a/app/models/channel/driver/sms/twilio.rb +++ b/app/models/channel/driver/sms/twilio.rb @@ -26,7 +26,7 @@ class Channel::Driver::Sms::Twilio true rescue => e - Rails.logger.debug "Twilio error: #{e.inspect}" + Rails.logger.debug { "Twilio error: #{e.inspect}" } raise e end end diff --git a/app/models/channel/filter/follow_up_check.rb b/app/models/channel/filter/follow_up_check.rb index a27d9bf62..2e041505c 100644 --- a/app/models/channel/filter/follow_up_check.rb +++ b/app/models/channel/filter/follow_up_check.rb @@ -123,7 +123,7 @@ module Channel::Filter::FollowUpCheck article = message_id_article(message_id) next if article.blank? - Rails.logger.debug "Follow up for '##{article.ticket.number}' in references." + Rails.logger.debug { "Follow up for '##{article.ticket.number}' in references." } mail[:'x-zammad-ticket-id'] = article.ticket_id return true end diff --git a/app/models/user/avatar.rb b/app/models/user/avatar.rb index c034bfb23..89b914c29 100644 --- a/app/models/user/avatar.rb +++ b/app/models/user/avatar.rb @@ -15,7 +15,7 @@ class User return if image_source.blank? return if image_source.match?(URI::DEFAULT_PARSER.make_regexp(%w[http https])) - Rails.logger.debug "Removed invalid image source '#{image_source}' for user '#{email}'" + Rails.logger.debug { "Removed invalid image source '#{image_source}' for user '#{email}'" } self.image_source = nil end