From fdb5aa7bb41c9a11a2dfdcdb12f00f95f37e2072 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 22 Apr 2016 21:23:32 +0300 Subject: Updated to fix rubocop warnings. --- bin/custodian-queue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/custodian-queue') 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? -- cgit v1.2.1