提交 3fde1dce 编写于 作者: D Douwe Maan

Satisfy Rubocop.

上级 a938b3ee
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册