Commit 2af2b78e authored by Lin Jen-Shin's avatar Lin Jen-Shin

Avoid shadowing method name. Just use existing method

parent 1f6efa35
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment