diff options
author | Leandro Camargo <leandroico@gmail.com> | 2016-12-07 03:01:34 -0200 |
---|---|---|
committer | Leandro Camargo <leandroico@gmail.com> | 2017-01-25 01:07:44 -0200 |
commit | be7106a145b1e3d4c6e06503e0f7f3032ace3764 (patch) | |
tree | eade35f3dbfa182058388094e11fd983274e1eae /lib/gitlab/ci/config/entry/coverage.rb | |
parent | f8bec0d1fb05d2c3e87a0470579ee7a650ade23c (diff) | |
download | gitlab-ce-be7106a145b1e3d4c6e06503e0f7f3032ace3764.tar.gz |
Force coverage value to always be surrounded by '/'
Diffstat (limited to 'lib/gitlab/ci/config/entry/coverage.rb')
-rw-r--r-- | lib/gitlab/ci/config/entry/coverage.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/gitlab/ci/config/entry/coverage.rb b/lib/gitlab/ci/config/entry/coverage.rb index 706bfc882de..25546f363fb 100644 --- a/lib/gitlab/ci/config/entry/coverage.rb +++ b/lib/gitlab/ci/config/entry/coverage.rb @@ -11,14 +11,6 @@ module Gitlab validations do validates :config, regexp: true end - - def value - if @config.first == '/' && @config.last == '/' - @config[1...-1] - else - @config - end - end end end end |