Commit 3fde1dce authored by Douwe Maan's avatar Douwe Maan

Satisfy Rubocop.

parent a938b3ee
...@@ -62,9 +62,9 @@ module Gitlab ...@@ -62,9 +62,9 @@ module Gitlab
end end
def find_deploy_key(project_identifier, key) def find_deploy_key(project_identifier, key)
JSON.parse(api.get("/api/1.0/repositories/#{project_identifier}/deploy-keys").body).find { |deploy_key| JSON.parse(api.get("/api/1.0/repositories/#{project_identifier}/deploy-keys").body).find do |deploy_key|
deploy_key["key"].chomp == key.chomp deploy_key["key"].chomp == key.chomp
} end
end end
def add_deploy_key(project_identifier, key) def add_deploy_key(project_identifier, key)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment