remove unnecessary Commit.new
This commit is contained in:
parent
bbfbff3add
commit
458631c5ba
3 changed files with 2 additions and 5 deletions
|
@ -130,7 +130,7 @@ class Note < ActiveRecord::Base
|
|||
# override to return commits, which are not active record
|
||||
def noteable
|
||||
if for_commit?
|
||||
Commit.new(project.repository.commit(commit_id))
|
||||
project.repository.commit(commit_id)
|
||||
else
|
||||
super
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue