Avoid shadowing method name. Just use existing method
This commit is contained in:
parent
1f6efa352c
commit
2af2b78e49
|
@ -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
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue