diff options
author | Jeff Stubler <brunsa2@gmail.com> | 2015-11-11 16:29:29 -0600 |
---|---|---|
committer | Jeff Stubler <brunsa2@gmail.com> | 2015-11-11 16:29:29 -0600 |
commit | e0c64fac68b4b3acc48300956146b85e03b426ce (patch) | |
tree | 3b7e3387a152d867984be589bfb3539a08ea279a /app/controllers/projects | |
parent | 860e24cc7b01280fad7d6351e8dcf891b45f5dd3 (diff) | |
download | gitlab-ce-e0c64fac68b4b3acc48300956146b85e03b426ce.tar.gz |
Refactor for style issues
Diffstat (limited to 'app/controllers/projects')
-rw-r--r-- | app/controllers/projects/branches_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/branches_controller.rb b/app/controllers/projects/branches_controller.rb index c3cd7642dd2..87884420952 100644 --- a/app/controllers/projects/branches_controller.rb +++ b/app/controllers/projects/branches_controller.rb @@ -10,8 +10,7 @@ class Projects::BranchesController < Projects::ApplicationController @branches = @repository.branches_sorted_by(@sort) @branches = Kaminari.paginate_array(@branches).page(params[:page]).per(PER_PAGE) - @max_commits = @branches.reduce(0) do - |memo, branch| + @max_commits = @branches.reduce(0) do |memo, branch| diverging_commit_counts = repository.diverging_commit_counts(branch) [memo, diverging_commit_counts[:behind], diverging_commit_counts[:ahead]].max end |