summaryrefslogtreecommitdiff
path: root/bin/custodian-queue
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2016-04-22 21:23:32 +0300
committerSteve Kemp <steve@steve.org.uk>2016-04-22 21:23:32 +0300
commitfdb5aa7bb41c9a11a2dfdcdb12f00f95f37e2072 (patch)
tree107279e870e96c884490dbeab9be3bda93429155 /bin/custodian-queue
parent95a1fa2355f2b6352f1929122815504f98f4b4de (diff)
Updated to fix rubocop warnings.
Diffstat (limited to 'bin/custodian-queue')
-rwxr-xr-xbin/custodian-queue14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/custodian-queue b/bin/custodian-queue
index a78ae25..0369fad 100755
--- a/bin/custodian-queue
+++ b/bin/custodian-queue
@@ -25,15 +25,15 @@ if __FILE__ == $PROGRAM_NAME
['--manual', '-m', GetoptLong::NO_ARGUMENT],
['--monitor', '-M', GetoptLong::OPTIONAL_ARGUMENT],
['--stats', '-s', GetoptLong::NO_ARGUMENT]
- )
+ )
opts.each do |opt, arg|
case opt
when '--monitor' then
- if arg
- monitor = arg.to_i
- else
- monitor = 5000
- end
+ monitor = if arg
+ arg.to_i
+ else
+ 5000
+ end
when '--stats' then
stats = true
when '--flush' then
@@ -62,7 +62,7 @@ if __FILE__ == $PROGRAM_NAME
#
# Create the queue object.
#
- queue = Custodian::RedisQueueType.new()
+ queue = Custodian::RedisQueueType.new
#
# Alerting on a queue that is too-full?