Avoid shadowing method name. Just use existing method

This commit is contained in:
Lin Jen-Shin 2016-08-30 23:08:25 +08:00
parent 1f6efa352c
commit 2af2b78e49
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ module Gitlab
merged = process_periods(periods)
@duration = process_duration(merged)
@pending_duration = process_pending_duration(merged, @duration)
@pending_duration = process_pending_duration(merged)
end
def process_periods(periods)
@ -62,7 +62,7 @@ module Gitlab
end
end
def process_pending_duration(periods, duration)
def process_pending_duration(periods)
return 0 if periods.empty?
total = periods.last.last - periods.first.first