summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-04 15:26:23 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-04 15:26:23 +0200
commitffadefb331b9af1607acd616c6d485f014832c86 (patch)
tree9835d868780996f8e1b7371b47f3e5afa211d483 /lib/api
parent662f8af497656754c7ad27c0250d2aae825b8545 (diff)
parent963e6366be870bc78037424a5e9d150f342dcfac (diff)
downloadgitlab-ce-ffadefb331b9af1607acd616c6d485f014832c86.tar.gz
Merge pull request #9690 from ggarnier/master
Fix "useless assignment" Rubocop warnings
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)