提交 1eca4466 编写于 作者: K Kamil Trzciński

Merge branch '57223-wiki-finder' into 'master'

Remove BATCH_SIZE from WikiFileFinder

Closes #57223

See merge request gitlab-org/gitlab-ce!24933
---
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册