diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-02-12 16:20:45 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-02-12 16:20:45 +0300 |
commit | 1eca446671553888782bc709b8af799fd6de1a66 (patch) | |
tree | a22a4f5e0cf1f64962f9a0dbe4649bdcc10759b4 /lib | |
parent | 1319a9edd901751fe58daeb2f5f2f31b09290d99 (diff) | |
parent | b731feba06ad48ba7930ea3526e6ea4b37dce080 (diff) |
Merge branch '57223-wiki-finder' into 'master'
Remove BATCH_SIZE from WikiFileFinder
Closes #57223
See merge request gitlab-org/gitlab-ce!24933
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/wiki_file_finder.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/wiki_file_finder.rb b/lib/gitlab/wiki_file_finder.rb index 5303b3582ab..e9be6db50da 100644 --- a/lib/gitlab/wiki_file_finder.rb +++ b/lib/gitlab/wiki_file_finder.rb @@ -2,8 +2,6 @@ module Gitlab class WikiFileFinder < FileFinder - BATCH_SIZE = 100 - attr_reader :repository def initialize(project, ref) @@ -19,7 +17,7 @@ module Gitlab safe_query = Regexp.new(safe_query, Regexp::IGNORECASE) filenames = repository.ls_files(ref) - filenames.grep(safe_query).first(BATCH_SIZE) + filenames.grep(safe_query) end end end |