Commit b731feba authored by Jarka Košanová's avatar Jarka Košanová

Remove BATCH_SIZE from WikiFileFinder

parent b9f0eff9
---
title: Remove BATCH_SIZE from WikiFileFinder
merge_request: 24933
author:
type: other
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment