summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-06-03 15:49:52 +0200
committerJacob Vosmaer <jacob@gitlab.com>2016-06-03 15:49:52 +0200
commit50a357d7e8fcc7c7ec25eff01495c39f7f90ffd8 (patch)
tree38f6be8482bf214092bbb81e356eb29935dd24a8
parent1564074648afc12fc788a7b5e2eb896dc74f62ef (diff)
downloadgitlab-ce-50a357d7e8fcc7c7ec25eff01495c39f7f90ffd8.tar.gz
Use #present?
-rw-r--r--app/controllers/projects/git_http_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb
index bf7ba7a5829..e53158c4121 100644
--- a/app/controllers/projects/git_http_controller.rb
+++ b/app/controllers/projects/git_http_controller.rb
@@ -124,7 +124,7 @@ class Projects::GitHttpController < Projects::ApplicationController
end
def ci?
- !!@ci
+ @ci.present?
end
def upload_pack_allowed?