From 262c7d9360b23cb06d60f0b0692379555e691274 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 12:52:08 +0000 Subject: Avoid redundent ".to_s" methods. These are not required if the argument is string already, or has a _to_s method which will be automatically invoked by magic. --- bin/custodian-dequeue | 2 +- bin/custodian-enqueue | 2 +- bin/custodian-queue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue index 349ff31..c5c5309 100755 --- a/bin/custodian-dequeue +++ b/bin/custodian-dequeue @@ -90,7 +90,7 @@ if __FILE__ == $PROGRAM_NAME then end end rescue StandardError => ex - puts "Option parsing failed: #{ex.to_s}" + puts "Option parsing failed: #{ex}" exit end diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index 75d38ac..dec83cb 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -91,7 +91,7 @@ if __FILE__ == $PROGRAM_NAME then end end rescue StandardError => ex - puts "Option parsing failed: #{ex.to_s}" + puts "Option parsing failed: #{ex}" exit end diff --git a/bin/custodian-queue b/bin/custodian-queue index ed2c3be..48c6edc 100755 --- a/bin/custodian-queue +++ b/bin/custodian-queue @@ -88,7 +88,7 @@ if __FILE__ == $PROGRAM_NAME then end end rescue StandardError => ex - puts "Option parsing failed: #{ex.to_s}" + puts "Option parsing failed: #{ex}" exit end -- cgit v1.2.1