Satisfy Rubocop.
This commit is contained in:
parent
a938b3eeb4
commit
3fde1dce1f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue