Commit 9b8af9c7 authored by Lee Tickett's avatar Lee Tickett

Remove redundant call to RenderService

During a recent bug fix we identified the return value from LoadEvents
is not used, and hence the call to RenderService is redundant.

Changelog: performance
parent 99f5cbd3
......@@ -373,8 +373,6 @@ class ProjectsController < Projects::ApplicationController
.new(projects, offset: params[:offset].to_i, filter: event_filter)
.to_a
.map(&:present)
Events::RenderService.new(current_user).execute(@events, atom_request: request.format.atom?)
end
# rubocop: enable CodeReuse/ActiveRecord
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment