summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorGuilherme Garnier <guilherme.garnier@gmail.com>2015-10-03 01:29:58 -0500
committerGuilherme Garnier <guilherme.garnier@gmail.com>2015-10-03 01:29:58 -0500
commit59d0263bc86962737def7d2174e302a312d96574 (patch)
tree03237affecdedcca120df28eef8e9c0de240a5a4 /lib/api
parent2b075f16c7e867ae19a79fb7c59ca6754f9df7bf (diff)
downloadgitlab-ce-59d0263bc86962737def7d2174e302a312d96574.tar.gz
Fix rubocop warnings in lib
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 7fada98fcdc..549b1f9e9a7 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -63,11 +63,11 @@ module API
user_project.build_missing_services
service_method = "#{underscored_service}_service"
-
+
send_service(service_method)
end
end
-
+
@project_service || not_found!("Service")
end
@@ -149,7 +149,6 @@ module API
end
def attributes_for_keys(keys, custom_params = nil)
- params_hash = custom_params || params
attrs = {}
keys.each do |key|
if params[key].present? or (params.has_key?(key) and params[key] == false)