Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-18 20:10:22 +0300
committerDouwe Maan <douwe@gitlab.com>2015-02-24 17:07:25 +0300
commit3fde1dce1f9058d4b57d17eac55051fb174c6aa4 (patch)
tree6c9723f261455e85eeb79bd2091a856f84491813 /lib
parenta938b3eeb4684f5747f63c23385f870ccbf43d2d (diff)
Satisfy Rubocop.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/bitbucket_import/client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/bitbucket_import/client.rb b/lib/gitlab/bitbucket_import/client.rb
index 5095e592ab7..c907bebaef6 100644
--- a/lib/gitlab/bitbucket_import/client.rb
+++ b/lib/gitlab/bitbucket_import/client.rb
@@ -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)