diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-07-04 04:55:33 -0500 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 18:38:36 +0900 |
commit | 6128f286fa5801490be7cc033e827673f0418ff7 (patch) | |
tree | afed8700889105874a18e832875ab945b9cd38ef | |
parent | 1bfa818a1f3ac9c40a8d4fc727cfe848efcef962 (diff) | |
download | gitlab-ce-6128f286fa5801490be7cc033e827673f0418ff7.tar.gz |
Use each loop because index is no longer used
See
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12372#note_34120330
-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 |