summaryrefslogtreecommitdiff
path: root/app/models/diff_note.rb
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2019-02-26 17:03:58 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2019-02-26 17:19:18 -0300
commit6fc010bb39f902700b6b1d21b1fdb591c1cd287b (patch)
treeddb99253d345c58d50c22bd234e392a0f9b09cdf /app/models/diff_note.rb
parente116fcab4151d61087afae17b6bf6cac58be29fc (diff)
downloadgitlab-ce-6fc010bb39f902700b6b1d21b1fdb591c1cd287b.tar.gz
Use shorthand version of method call
Diffstat (limited to 'app/models/diff_note.rb')
-rw-r--r--app/models/diff_note.rb3
1 files changed, 1 insertions, 2 deletions
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