lib/global_registry_bindings/worker.rb in global-registry-bindings-0.6.2 vs lib/global_registry_bindings/worker.rb in global-registry-bindings-0.6.3
- old
+ new
@@ -1,12 +1,12 @@
# frozen_string_literal: true
-require 'sidekiq'
-require 'sidekiq-unique-jobs'
+require "sidekiq"
+require "sidekiq-unique-jobs"
-module GlobalRegistry #:nodoc:
- module Bindings #:nodoc:
+module GlobalRegistry # :nodoc:
+ module Bindings # :nodoc:
class Worker
include Sidekiq::Worker
attr_accessor :model
delegate :global_registry_entity, to: :model
@@ -34,10 +34,10 @@
when :raise
raise
when :log
::Rollbar.error(e) if Module.const_defined? :Rollbar
when :ignore
- return
+ nil
end
end
end
end
end