BigW Consortium Gitlab

Commit 2af2b78e by Lin Jen-Shin

Avoid shadowing method name. Just use existing method

parent 1f6efa35
...@@ -30,7 +30,7 @@ module Gitlab ...@@ -30,7 +30,7 @@ module Gitlab
merged = process_periods(periods) merged = process_periods(periods)
@duration = process_duration(merged) @duration = process_duration(merged)
@pending_duration = process_pending_duration(merged, @duration) @pending_duration = process_pending_duration(merged)
end end
def process_periods(periods) def process_periods(periods)
...@@ -62,7 +62,7 @@ module Gitlab ...@@ -62,7 +62,7 @@ module Gitlab
end end
end end
def process_pending_duration(periods, duration) def process_pending_duration(periods)
return 0 if periods.empty? return 0 if periods.empty?
total = periods.last.last - periods.first.first 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