Apply automatic rubocop fixes

This commit is contained in:
Sebastian Serth
2021-06-25 14:41:49 +02:00
parent 03b46cefb0
commit e7cf4ef5db
6 changed files with 42 additions and 40 deletions

View File

@ -53,7 +53,7 @@ module Prometheus
end
def update_notification(object)
Rails.logger.debug("Prometheus metric updated for #{object.class.name}")
Rails.logger.debug { "Prometheus metric updated for #{object.class.name}" }
case object
when RequestForComment
@ -63,7 +63,7 @@ module Prometheus
def create_notification(object)
@instance_count.increment(class: object.class.name)
Rails.logger.debug("Prometheus instance count increased for #{object.class.name}")
Rails.logger.debug { "Prometheus instance count increased for #{object.class.name}" }
case object
when RequestForComment
@ -75,7 +75,7 @@ module Prometheus
def destroy_notification(object)
@instance_count.decrement(class: object.class.name)
Rails.logger.debug("Prometheus instance count decreased for #{object.class.name}")
Rails.logger.debug { "Prometheus instance count decreased for #{object.class.name}" }
case object
when Comment