diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-04 15:26:23 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-04 15:26:23 +0200 |
commit | ffadefb331b9af1607acd616c6d485f014832c86 (patch) | |
tree | 9835d868780996f8e1b7371b47f3e5afa211d483 /lib/api/helpers.rb | |
parent | 662f8af497656754c7ad27c0250d2aae825b8545 (diff) | |
parent | 963e6366be870bc78037424a5e9d150f342dcfac (diff) | |
download | gitlab-ce-ffadefb331b9af1607acd616c6d485f014832c86.tar.gz |
Merge pull request #9690 from ggarnier/master
Fix "useless assignment" Rubocop warnings
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 5 |
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) |