Use shorthand version of method call
This commit is contained in:
parent
e116fcab41
commit
6fc010bb39
|
@ -44,8 +44,7 @@ class DiffNote < Note
|
||||||
# Returns the diff file from `position`
|
# Returns the diff file from `position`
|
||||||
def latest_diff_file
|
def latest_diff_file
|
||||||
strong_memoize(:latest_diff_file) do
|
strong_memoize(:latest_diff_file) do
|
||||||
repository = project.repository
|
position.diff_file(project.repository)
|
||||||
position.diff_file(repository)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue