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-enqueue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/custodian-enqueue') diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index dec83cb..568c0d6 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -129,10 +129,10 @@ if __FILE__ == $PROGRAM_NAME then # # Connected to the queue - be it redis or beanstalkd # - settings = Custodian::Settings.instance() - queue = Custodian::QueueType.create( settings.queue_type() ) + settings = Custodian::Settings.instance + queue = Custodian::QueueType.create( settings.queue_type ) if ( ! queue ) - puts "Failed to connect to the #{settings.queue_type()} queue" + puts "Failed to connect to the #{settings.queue_type} queue" exit 1 end @@ -140,7 +140,7 @@ if __FILE__ == $PROGRAM_NAME then # # Create the parser object. # - mon = Custodian::Parser.new() + mon = Custodian::Parser.new # -- cgit v1.2.1