summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-12-20 23:30:01 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-12-20 23:30:01 +0800
commitc1d11bf57c3091aa4695e302e21c39b9ec723f54 (patch)
treea66652e69f265aa5e969f97a413768f7f97871a2
parent884f57c9102416805427d773eb21e09fd30c2452 (diff)
downloadgitlab-ce-feature/1376-allow-write-access-deploy-keys.tar.gz
Rubocop prefers to indent this wayfeature/1376-allow-write-access-deploy-keys
-rw-r--r--lib/gitlab/git_access.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git_access.rb b/lib/gitlab/git_access.rb
index f0b241fb5e6..7e1484613f2 100644
--- a/lib/gitlab/git_access.rb
+++ b/lib/gitlab/git_access.rb
@@ -100,8 +100,8 @@ module Gitlab
return if deploy_key?
passed = user_can_download_code? ||
- build_can_download_code? ||
- guest_can_download_code?
+ build_can_download_code? ||
+ guest_can_download_code?
unless passed
raise UnauthorizedError, ERROR_MESSAGES[:download]