diff options
author | Valery Sizov <valery@gitlab.com> | 2016-10-19 19:43:04 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-10-19 19:48:12 +0300 |
commit | 5b17efb4b45dc97621a46d9cec33f3e94b2c7a8c (patch) | |
tree | 0e6510bffd9611ed47769731aecef92fc4e70676 /lib | |
parent | f0c7e6713f2778a2b52ab8091c398a96982380de (diff) | |
download | gitlab-ce-refactoring_find_commits_method.tar.gz |
Refactoring find_commits functionalityrefactoring_find_commits_method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/project_search_results.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/project_search_results.rb b/lib/gitlab/project_search_results.rb index 5b9cfaeb2f8..24733435a5a 100644 --- a/lib/gitlab/project_search_results.rb +++ b/lib/gitlab/project_search_results.rb @@ -73,11 +73,7 @@ module Gitlab end def commits - if project.empty_repo? || query.blank? - [] - else - project.repository.find_commits_by_message(query).compact - end + project.repository.find_commits_by_message(query) end def project_ids_relation |