diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2019-02-26 23:03:58 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2019-02-26 23:19:18 +0300 |
commit | 6fc010bb39f902700b6b1d21b1fdb591c1cd287b (patch) | |
tree | ddb99253d345c58d50c22bd234e392a0f9b09cdf /app | |
parent | e116fcab4151d61087afae17b6bf6cac58be29fc (diff) |
Use shorthand version of method call
Diffstat (limited to 'app')
-rw-r--r-- | app/models/diff_note.rb | 3 |
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 |