diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-07-04 12:55:33 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 12:38:36 +0300 |
commit | 6128f286fa5801490be7cc033e827673f0418ff7 (patch) | |
tree | afed8700889105874a18e832875ab945b9cd38ef /app/views/projects | |
parent | 1bfa818a1f3ac9c40a8d4fc727cfe848efcef962 (diff) |
Use each loop because index is no longer used
See
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12372#note_34120330
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/pipeline_schedules/_form.html.haml | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/pipeline_schedules/_form.html.haml b/app/views/projects/pipeline_schedules/_form.html.haml index 4f65532e279..8aaef29cba8 100644 --- a/app/views/projects/pipeline_schedules/_form.html.haml +++ b/app/views/projects/pipeline_schedules/_form.html.haml @@ -27,9 +27,8 @@ %label.label-light #{ _('Variables') } %ul.js-pipeline-variable-list.pipeline-variable-list - - if @schedule.variables.present? - - @schedule.variables.each_with_index do |variable, i| - = render 'variable_row', id: variable.id, key: variable.key, value: variable.value + - @schedule.variables.each do |variable| + = render 'variable_row', id: variable.id, key: variable.key, value: variable.value = render 'variable_row' .form-group .col-md-9 |