diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:52:08 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 12:52:08 +0000 |
commit | b4340b00e2c7a6e85448787d4dee41d7202859f2 (patch) | |
tree | db469a840e4c8bb2ef4f896a67eb62a8459e5dc4 /bin | |
parent | 664ff3648246f38a4c49adc32e1ce0887dcbfe37 (diff) |
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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/custodian-dequeue | 2 | ||||
-rwxr-xr-x | bin/custodian-enqueue | 2 | ||||
-rwxr-xr-x | bin/custodian-queue | 2 |
3 files changed, 3 insertions, 3 deletions
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 |