Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2019-02-26 23:03:58 +0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2019-02-26 23:19:18 +0300
commit6fc010bb39f902700b6b1d21b1fdb591c1cd287b (patch)
treeddb99253d345c58d50c22bd234e392a0f9b09cdf /app
parente116fcab4151d61087afae17b6bf6cac58be29fc (diff)
Use shorthand version of method call
Diffstat (limited to 'app')
-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