diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-30 23:08:25 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-30 23:08:25 +0800 |
commit | 2af2b78e49c2089386919bc7a9d155fed244ec80 (patch) | |
tree | 88df91b0edbf54f32a5ac165b501aba25dfcde05 /lib | |
parent | 1f6efa352ce8cabc1d733cc54420daa86a7d22c0 (diff) | |
download | gitlab-ce-2af2b78e49c2089386919bc7a9d155fed244ec80.tar.gz |
Avoid shadowing method name. Just use existing method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/pipeline_duration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/pipeline_duration.rb b/lib/gitlab/ci/pipeline_duration.rb index 490e8f34cff..d8fb05724bc 100644 --- a/lib/gitlab/ci/pipeline_duration.rb +++ b/lib/gitlab/ci/pipeline_duration.rb @@ -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 |