summaryrefslogtreecommitdiff
path: root/app/controllers/projects/commits_controller.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-10-19 19:43:04 +0300
committerValery Sizov <valery@gitlab.com>2016-10-19 19:48:12 +0300
commit5b17efb4b45dc97621a46d9cec33f3e94b2c7a8c (patch)
tree0e6510bffd9611ed47769731aecef92fc4e70676 /app/controllers/projects/commits_controller.rb
parentf0c7e6713f2778a2b52ab8091c398a96982380de (diff)
downloadgitlab-ce-refactoring_find_commits_method.tar.gz
Refactoring find_commits functionalityrefactoring_find_commits_method
Diffstat (limited to 'app/controllers/projects/commits_controller.rb')
-rw-r--r--app/controllers/projects/commits_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/commits_controller.rb b/app/controllers/projects/commits_controller.rb
index a52c614b259..c2e7bf1ffec 100644
--- a/app/controllers/projects/commits_controller.rb
+++ b/app/controllers/projects/commits_controller.rb
@@ -13,7 +13,7 @@ class Projects::CommitsController < Projects::ApplicationController
@commits =
if search.present?
- @repository.find_commits_by_message(search, @ref, @path, @limit, @offset).compact
+ @repository.find_commits_by_message(search, @ref, @path, @limit, @offset)
else
@repository.commits(@ref, path: @path, limit: @limit, offset: @offset)
end