Commit 6fc010bb authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Use shorthand version of method call

parent e116fcab
......@@ -44,8 +44,7 @@ class DiffNote < Note
# Returns the diff file from `position`
def latest_diff_file
strong_memoize(:latest_diff_file) do
repository = project.repository
position.diff_file(repository)
position.diff_file(project.repository)
end
end
......
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