diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-01 00:52:38 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-05 19:44:14 +0300 |
commit | afa53810deab37c95da245510a7cf85e8846a162 (patch) | |
tree | 1e6a4e64584e64fabb8e7ea21a7e9e13624ea018 /lib/gitlab/diff/position.rb | |
parent | 21e10888c3fc0fe545c0443cf0e23f593df847a4 (diff) |
Fix specs
Diffstat (limited to 'lib/gitlab/diff/position.rb')
-rw-r--r-- | lib/gitlab/diff/position.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/diff/position.rb b/lib/gitlab/diff/position.rb index fa567dd9da4..fc728123c97 100644 --- a/lib/gitlab/diff/position.rb +++ b/lib/gitlab/diff/position.rb @@ -42,7 +42,7 @@ module Gitlab def encode_with(coder) coder['attributes'] = self.to_h end - + def key @key ||= [base_sha, start_sha, head_sha, Digest::SHA1.hexdigest(old_path || ""), Digest::SHA1.hexdigest(new_path || ""), old_line, new_line] end |