Skip to content
Snippets Groups Projects
Commit c418261b authored by zenati's avatar zenati
Browse files

No need to check if `repository_ref` is present

There is no need to check if `repository_ref` is present as:
```
      @repository_ref = if repository_ref.present?
                          repository_ref
                        else
                          nil
                        end
```

is as same as doing:

```
@repository_ref = repository_ref
```
parent 509fe115
No related branches found
No related tags found
1 merge request!9368No need to check if `repository_ref` is present
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment