diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:09:46 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:09:46 +0000 |
commit | edf0e675123e4869e2739d1bab0ed57b3b9f664c (patch) | |
tree | c0771fecb0734fb342cf16e352f19fd3ead9a112 /bin/custodian-queue | |
parent | 22b40326730fb7a4a8e2f5cb8d877f6a84494d02 (diff) |
Do not use parentheses for method calls with no arguments.
This is neater. Flagged by rubocop
Diffstat (limited to 'bin/custodian-queue')
-rwxr-xr-x | bin/custodian-queue | 6 |
1 files changed, 3 insertions, 3 deletions
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 |