From 6fc010bb39f902700b6b1d21b1fdb591c1cd287b Mon Sep 17 00:00:00 2001 From: Oswaldo Ferreira Date: Tue, 26 Feb 2019 17:03:58 -0300 Subject: Use shorthand version of method call --- app/models/diff_note.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/models/diff_note.rb') diff --git a/app/models/diff_note.rb b/app/models/diff_note.rb index bd9e146a40f..805092e527a 100644 --- a/app/models/diff_note.rb +++ b/app/models/diff_note.rb @@ -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 -- cgit v1.2.1