mirror of
https://github.com/jimeh/bunnyrun.git
synced 2026-02-19 07:56:40 +00:00
Fix rubocop complaints
This commit is contained in:
@@ -19,6 +19,7 @@ module Foobar
|
||||
message.ack
|
||||
|
||||
return unless options.success_message
|
||||
|
||||
logger.info("#{self.class}: #{options.success_message}")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,6 +19,7 @@ module Foobar
|
||||
message.ack
|
||||
|
||||
return unless options.success_message
|
||||
|
||||
logger.info("#{self.class}: #{options.success_message}")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,6 +21,7 @@ module BunnyRun
|
||||
|
||||
def queue(name = nil, attrs = {})
|
||||
return @queue if name.nil?
|
||||
|
||||
@queue = { name: name, attrs: attrs }
|
||||
end
|
||||
|
||||
@@ -34,11 +35,13 @@ module BunnyRun
|
||||
|
||||
def manual_ack(value = nil)
|
||||
return @manual_ack || false if value.nil?
|
||||
|
||||
@manual_ack = value
|
||||
end
|
||||
|
||||
def prefetch(count = nil)
|
||||
return @prefetch if count.nil?
|
||||
|
||||
@prefetch = count
|
||||
end
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ module BunnyRun
|
||||
|
||||
def acked?
|
||||
return unless manual_ack?
|
||||
|
||||
@acked
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user