Commit dd1a80ce authored by Matthias Kaeppler's avatar Matthias Kaeppler

Bring back Sidekiq class constant check

This should always be safe, since `Sidekiq.server?` would never
succeed without this to exist, and it's more consistent.
parent c7e4f44e
......@@ -38,7 +38,7 @@ module Gitlab
end
def sidekiq?
!!Sidekiq.server?
!!(defined?(::Sidekiq) && Sidekiq.server?)
end
def console?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment