summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-11 15:27:20 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-11 15:27:20 +0100
commitfc4108b38b5d0a7fc755c1977663f516b5dea0bd (patch)
treec7946f1b49765bf18d9646d4594145e7fd528064 /lib/api/helpers.rb
parentba9799b42f5bc861df1fc5d41c149cf72e9daf04 (diff)
downloadgitlab-ce-ci/api-projects.tar.gz
Modify CI features in projects APIci/api-projects
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 563c12e4f74..a4df810e755 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -157,7 +157,7 @@ module API
def attributes_for_keys(keys, custom_params = nil)
attrs = {}
keys.each do |key|
- if params[key].present? or (params.has_key?(key) and (params[key].empty? or params[key] == false))
+ if params[key].present? or (params.has_key?(key) and params[key] == false)
attrs[key] = params[key]
end
end