Commit 199b9338 authored by Jeroen van Baarsen's avatar Jeroen van Baarsen

Merge pull request #9368 from zenati/patch-1

No need to check if `repository_ref` is present
parents b637f849 c418261b
......@@ -4,11 +4,7 @@ module Gitlab
def initialize(project_id, query, repository_ref = nil)
@project = Project.find(project_id)
@repository_ref = if repository_ref.present?
repository_ref
else
nil
end
@repository_ref = repository_ref
@query = Shellwords.shellescape(query) if query.present?
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