Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/ansi2json/converter.rb')
-rw-r--r--lib/gitlab/ci/ansi2json/converter.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gitlab/ci/ansi2json/converter.rb b/lib/gitlab/ci/ansi2json/converter.rb
index ddf40296809..78f6c5bf0aa 100644
--- a/lib/gitlab/ci/ansi2json/converter.rb
+++ b/lib/gitlab/ci/ansi2json/converter.rb
@@ -107,9 +107,10 @@ module Gitlab
section_name = sanitize_section_name(section)
- if action == 'start'
+ case action
+ when 'start'
handle_section_start(scanner, section_name, timestamp, options)
- elsif action == 'end'
+ when 'end'
handle_section_end(scanner, section_name, timestamp)
else
raise 'unsupported action'