Skip to content
Snippets Groups Projects
Commit 3fde1dce authored by Douwe Maan's avatar Douwe Maan
Browse files

Satisfy Rubocop.

parent a938b3ee
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -62,9 +62,9 @@ module Gitlab
end
 
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
}
end
end
 
def add_deploy_key(project_identifier, key)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment