Applied rubocop suggestions.

This commit is contained in:
Martin Gruner 2021-07-09 13:24:41 +02:00
parent 1346c60095
commit fb7173a7b9
3 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ class Channel::Driver::Sms::Twilio
true true
rescue => e rescue => e
Rails.logger.debug "Twilio error: #{e.inspect}" Rails.logger.debug { "Twilio error: #{e.inspect}" }
raise e raise e
end end
end end

View file

@ -123,7 +123,7 @@ module Channel::Filter::FollowUpCheck
article = message_id_article(message_id) article = message_id_article(message_id)
next if article.blank? 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 mail[:'x-zammad-ticket-id'] = article.ticket_id
return true return true
end end

View file

@ -15,7 +15,7 @@ class User
return if image_source.blank? return if image_source.blank?
return if image_source.match?(URI::DEFAULT_PARSER.make_regexp(%w[http https])) 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 self.image_source = nil
end end