remove unnecessary Commit.new
This commit is contained in:
parent
bbfbff3add
commit
458631c5ba
3 changed files with 2 additions and 5 deletions
|
@ -12,7 +12,6 @@ class CommitLoadContext < BaseContext
|
|||
commit = project.repository.commit(params[:id])
|
||||
|
||||
if commit
|
||||
commit = Commit.new(commit)
|
||||
line_notes = project.notes.for_commit_id(commit.id).inline
|
||||
|
||||
result[:commit] = commit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue