summaryrefslogtreecommitdiff
path: root/app/views/projects/pipeline_schedules
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-07-03 12:55:39 -0500
committerShinya Maeda <shinya@gitlab.com>2017-07-05 18:36:19 +0900
commit8bc8e01fcf6502888f1088a5b72a8ae936c628fc (patch)
treedaaa1458bad1dcdaf71d8e5e43fb4d167d990389 /app/views/projects/pipeline_schedules
parentbbbd5521d2d177561efd6f8171394abef6ec90ff (diff)
downloadgitlab-ce-8bc8e01fcf6502888f1088a5b72a8ae936c628fc.tar.gz
Remove unncessary if-statement, thanks @zj
Diffstat (limited to 'app/views/projects/pipeline_schedules')
-rw-r--r--app/views/projects/pipeline_schedules/_form.html.haml5
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..0e600c59ef6 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_with_index do |variable, i|
+ = render 'variable_row', id: variable.id, key: variable.key, value: variable.value
= render 'variable_row'
.form-group
.col-md-9