Remove unncessary if-statement, thanks @zj

This commit is contained in:
Eric Eastwood 2017-07-03 12:55:39 -05:00 committed by Shinya Maeda
parent bbbd5521d2
commit 8bc8e01fcf
1 changed files with 2 additions and 3 deletions

View File

@ -27,9 +27,8 @@
%label.label-light %label.label-light
#{ _('Variables') } #{ _('Variables') }
%ul.js-pipeline-variable-list.pipeline-variable-list %ul.js-pipeline-variable-list.pipeline-variable-list
- if @schedule.variables.present? - @schedule.variables.each_with_index do |variable, i|
- @schedule.variables.each_with_index do |variable, i| = render 'variable_row', id: variable.id, key: variable.key, value: variable.value
= render 'variable_row', id: variable.id, key: variable.key, value: variable.value
= render 'variable_row' = render 'variable_row'
.form-group .form-group
.col-md-9 .col-md-9