Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I no like indenting ;)

  • Loading branch information...
commit 53cc3d6bdcbe92fbb6f33c351c2a3ebbcf791460 1 parent 712b259
@jayniz jayniz authored
Showing with 6 additions and 9 deletions.
  1. +6 −9 lib/resque-ext/job.rb
View
15 lib/resque-ext/job.rb
@@ -12,15 +12,12 @@ class Job
# after Resque::Job.create has called Resque.push
#
def self.create_with_loner(queue, klass, *args)
- if Resque.inline?
- create_without_loner(queue, klass, *args)
- else
- item = { :class => klass.to_s, :args => args }
- return "EXISTED" if Resque::Plugins::Loner::Helpers.loner_queued?(queue, item)
- job = create_without_loner(queue, klass, *args)
- Resque::Plugins::Loner::Helpers.mark_loner_as_queued(queue, item)
- job
- end
+ return create_without_loner(queue, klass, *args) if Resque.inline?
+ item = { :class => klass.to_s, :args => args }
+ return "EXISTED" if Resque::Plugins::Loner::Helpers.loner_queued?(queue, item)
+ job = create_without_loner(queue, klass, *args)
+ Resque::Plugins::Loner::Helpers.mark_loner_as_queued(queue, item)
+ job
end
#
Please sign in to comment.
Something went wrong with that request. Please try again.