From 891b720013f06f092f6be82adad95e5551c696b6 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:09:46 +0000 Subject: Do not use parentheses for method calls with no arguments. This is neater. Flagged by rubocop --- bin/custodian-queue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/custodian-queue') diff --git a/bin/custodian-queue b/bin/custodian-queue index 48c6edc..9dec58a 100755 --- a/bin/custodian-queue +++ b/bin/custodian-queue @@ -124,8 +124,8 @@ if __FILE__ == $PROGRAM_NAME then # # Create the queue object. # - settings = Custodian::Settings.instance() - queue = Custodian::QueueType.create( settings.queue_type() ) + settings = Custodian::Settings.instance + queue = Custodian::QueueType.create( settings.queue_type ) # # Alerting on a queue that is too-full? @@ -149,7 +149,7 @@ if __FILE__ == $PROGRAM_NAME then # Showing stats? # if ( $STATS ) - jobs = queue.size?() + jobs = queue.size? puts "There are #{jobs || 0} jobs pending." exit( 0 ) end -- cgit v1.2.1