summaryrefslogtreecommitdiff
path: root/lib/custodian/util/timespan.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 14:43:10 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 14:43:10 +0000
commit1165790e7986d920c149afd0898bfc82a34249a5 (patch)
tree22ec90be31ac77469ce6aa68e9215a5738024c57 /lib/custodian/util/timespan.rb
parent26f013750196c5028135216de386496696b02a09 (diff)
Removed trailing whitespace from the code
Diffstat (limited to 'lib/custodian/util/timespan.rb')
-rw-r--r--lib/custodian/util/timespan.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/custodian/util/timespan.rb b/lib/custodian/util/timespan.rb
index c0ca4eb..7de76b3 100644
--- a/lib/custodian/util/timespan.rb
+++ b/lib/custodian/util/timespan.rb
@@ -18,14 +18,14 @@ module Custodian
# Handle PM times.
#
if (desc.kind_of? String) &&
- (desc =~ /([0-9]+)pm$/i)
+ (desc =~ /([0-9]+)pm$/i)
desc = $1.dup.to_i + 12
end
#
# Handle AM times.
#
- if desc.kind_of? String
+ if desc.kind_of? String
desc = desc.sub(/am$/, '')
desc = desc.to_i
end
@@ -70,7 +70,7 @@ module Custodian
while (hour != p_end)
valid[hour] = 1
hour += 1
- hour = 0 if hour > 23
+ hour = 0 if hour > 23
end
valid[p_end] = 1
@@ -92,7 +92,7 @@ module Custodian
#
# Default to the current hour, if not specified.
#
- if cur_hour.nil?
+ if cur_hour.nil?
cur_hour = Time.now.hour
end