Fix a typo in lib/gitlab/search/found_blob.rb

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2019-07-01 10:43:06 +02:00
parent 8775e4a1fa
commit 7d797b104f
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

View file

@ -28,7 +28,7 @@ module Gitlab
@binary_data = opts.fetch(:data, nil)
@per_page = opts.fetch(:per_page, 20)
@project = opts.fetch(:project, nil)
# Some caller (e.g. Elasticsearch) does not have project object,
# Some callers (e.g. Elasticsearch) do not have the Project object,
# yet they can trigger many calls in one go,
# causing duplicated queries.
# Allow those to just pass project_id instead.