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
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-01 16:52:01 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-01 16:52:01 +0300
commit4c53ef321ea38bab311675798f5ebffdce911533 (patch)
tree62ca7ade16c134a7c8ab274769ed17ddece7bc41 /app/controllers
parent6fa82735b4716720012ed998154a3ffa2e5fc350 (diff)
Fix rubocop
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 4f99845a5d9..b60cf7ac1ac 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -225,8 +225,8 @@ class ProjectsController < Projects::ApplicationController
find_branches = true
find_tags = true
find_commits = true
-
- if !find_refs.nil?
+
+ unless find_refs.nil?
find_branches = find_refs.include? 'branches'
find_tags = find_refs.include? 'tags'
find_commits = find_refs.include? 'commits'