Use each loop because index is no longer used

See
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12372#note_34120330
This commit is contained in:
Eric Eastwood 2017-07-04 04:55:33 -05:00 committed by Shinya Maeda
parent 1bfa818a1f
commit 6128f286fa
1 changed files with 2 additions and 3 deletions

View File

@ -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