diff options
author | Valery Sizov <valery@gitlab.com> | 2016-10-19 19:43:04 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2016-10-20 12:45:34 +0300 |
commit | fd2c3a3da0302a474d7c1adbd409aedea2a41053 (patch) | |
tree | 5e10605f62a9a51fded5ef7874e6da8c8154c081 /lib | |
parent | f0c7e6713f2778a2b52ab8091c398a96982380de (diff) | |
download | gitlab-ce-fd2c3a3da0302a474d7c1adbd409aedea2a41053.tar.gz |
Refactoring find_commits functionality
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 |