diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-18 18:10:22 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-24 15:07:25 +0100 |
commit | 3fde1dce1f9058d4b57d17eac55051fb174c6aa4 (patch) | |
tree | 6c9723f261455e85eeb79bd2091a856f84491813 /lib | |
parent | a938b3eeb4684f5747f63c23385f870ccbf43d2d (diff) | |
download | gitlab-ce-3fde1dce1f9058d4b57d17eac55051fb174c6aa4.tar.gz |
Satisfy Rubocop.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/bitbucket_import/client.rb | 4 |
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) |