summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-09-03 14:42:52 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2018-09-04 16:12:50 +0200
commit38a82bc0ebc40d2a46ead24dedcf7bf80aeb5f6f (patch)
tree889ae7df0f121102461043bb51bea6704f5e6792
parent86d8f0a91fb522c76dff2025afb4edb8479326f4 (diff)
downloadgitlab-ce-38a82bc0ebc40d2a46ead24dedcf7bf80aeb5f6f.tar.gz
Fix codestyle
-rw-r--r--app/models/ci/build.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 53420091817..11028f233c0 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -543,12 +543,12 @@ module Ci
end
def options=(value)
- unless Feature.enabled?(:ci_use_build_metadata_for_config)
- super
- else
+ if Feature.enabled?(:ci_use_build_metadata_for_config)
# save and remove from this model
ensure_metadata.yaml_options = value
write_attribute(:options, nil)
+ else
+ super
end
end
@@ -559,12 +559,12 @@ module Ci
end
def yaml_variables=(value)
- unless Feature.enabled?(:ci_use_build_metadata_for_config)
- super
- else
+ if Feature.enabled?(:ci_use_build_metadata_for_config)
# save and remove from this model
ensure_metadata.yaml_variables = value
write_attribute(:yaml_variables, nil)
+ else
+ super
end
end