remove unnecessary Commit.new
This commit is contained in:
parent
bbfbff3add
commit
458631c5ba
3 changed files with 2 additions and 5 deletions
|
@ -109,9 +109,7 @@ module CommitsHelper
|
|||
end
|
||||
|
||||
def commit_to_html commit
|
||||
if commit.model
|
||||
escape_javascript(render 'commits/commit', commit: commit)
|
||||
end
|
||||
escape_javascript(render 'commits/commit', commit: commit)
|
||||
end
|
||||
|
||||
def diff_line_content(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue