diff options
author | gfyoung <gfyoung17@gmail.com> | 2018-10-25 21:12:43 -0700 |
---|---|---|
committer | gfyoung <gfyoung17@gmail.com> | 2018-10-26 16:36:42 -0700 |
commit | 06892e88f56eff13747f58e269c7190fc662a9ae (patch) | |
tree | 0e5a1ef7833bf5c742c45fec474d8a93d87e1e37 /lib/gitlab/ci/ansi2html.rb | |
parent | e997b22df50a46759cac9936a6557993310f8888 (diff) | |
download | gitlab-ce-06892e88f56eff13747f58e269c7190fc662a9ae.tar.gz |
Enable frozen string for lib/gitlab/ci
Enables frozen string for the following:
* lib/gitlab/ci/*.rb
* lib/gitlab/ci/build/**/*.rb
* lib/gitlab/ci/config/**/*.rb
* lib/gitlab/ci/pipeline/**/*.rb
* lib/gitlab/ci/reports/**/*.rb
Partially addresses #47424.
Diffstat (limited to 'lib/gitlab/ci/ansi2html.rb')
-rw-r--r-- | lib/gitlab/ci/ansi2html.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/ansi2html.rb b/lib/gitlab/ci/ansi2html.rb index e780f8c646b..974b5ad6877 100644 --- a/lib/gitlab/ci/ansi2html.rb +++ b/lib/gitlab/ci/ansi2html.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # ANSI color library # # Implementation per http://en.wikipedia.org/wiki/ANSI_escape_code @@ -265,7 +267,7 @@ module Gitlab def reset_state @offset = 0 @n_open_tags = 0 - @out = '' + @out = +'' reset end |