Skip to content
Snippets Groups Projects
Commit 23241c18 authored by Ralf Seidler's avatar Ralf Seidler
Browse files

Fixed houndci complaining over too long lines

parent d93b046c
No related branches found
No related tags found
No related merge requests found
Loading
@@ -9,7 +9,8 @@ class SearchController < ApplicationController
Loading
@@ -9,7 +9,8 @@ class SearchController < ApplicationController
@search_results = if @project @search_results = if @project
return access_denied! unless can?(current_user, :download_code, @project) return access_denied! unless can?(current_user, :download_code, @project)
   
unless %w(blobs notes issues merge_requests wiki_blobs).include?(@scope) unless %w(blobs notes issues merge_requests wiki_blobs).
include?(@scope)
@scope = 'blobs' @scope = 'blobs'
end end
   
Loading
Loading
Loading
@@ -22,7 +22,8 @@ module Gitlab
Loading
@@ -22,7 +22,8 @@ module Gitlab
end end
   
def total_count def total_count
@total_count ||= issues_count + merge_requests_count + blobs_count + notes_count + wiki_blobs_count @total_count ||= issues_count + merge_requests_count + blobs_count +
notes_count + wiki_blobs_count
end end
   
def blobs_count def blobs_count
Loading
@@ -51,7 +52,8 @@ module Gitlab
Loading
@@ -51,7 +52,8 @@ module Gitlab
if !project.wiki_enabled? if !project.wiki_enabled?
[] []
else else
Repository.new(ProjectWiki.new(project).path_with_namespace).search_files(query) Repository.new(ProjectWiki.new(project).path_with_namespace).
search_files(query)
end end
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment