From a22b8e96ead33b0f97ed5243dbad7f7b6cd5135d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:19:15 +0000 Subject: Prefer single-quotes when you don't need interpolation. So "foo" is less good than 'foo'. --- lib/custodian/util/timespan.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/util/timespan.rb') diff --git a/lib/custodian/util/timespan.rb b/lib/custodian/util/timespan.rb index 36e8d9e..a033675 100644 --- a/lib/custodian/util/timespan.rb +++ b/lib/custodian/util/timespan.rb @@ -33,7 +33,7 @@ module Custodian # # Ensure within a valid range # - raise ArgumentError, "Integer required for time" unless( desc.kind_of? Integer ) + raise ArgumentError, 'Integer required for time' unless( desc.kind_of? Integer ) raise ArgumentError, "Invalid time: #{desc}" unless( ( desc >= 0 ) && ( desc <= 23 ) ) -- cgit v1.2.1