Use shorthand version of method call

This commit is contained in:
Oswaldo Ferreira 2019-02-26 17:03:58 -03:00
parent e116fcab41
commit 6fc010bb39
1 changed files with 1 additions and 2 deletions

View File

@ -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