summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-06-15 10:28:28 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 15:42:53 +0200
commit34810acd6c3d4dd27f43f6f07e47b4e06bb95f82 (patch)
tree85e29ac5cb80247e5d8236453170100dd2047cd2 /app/models/commit.rb
parent7b616d39efaa7cba933d17dfae010d393c18d057 (diff)
downloadgitlab-ce-34810acd6c3d4dd27f43f6f07e47b4e06bb95f82.tar.gz
move signature cache read to Gpg::Commit
as we write the cache in the gpg commit class already the read should also happen there. This also removes all logic from the main commit class, which just proxies the call to the Gpg::Commit now.
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index ed8b9a79a7a..35593d53cbc 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -237,11 +237,6 @@ class Commit
def signature
return @signature if defined?(@signature)
- @signature = nil
-
- cached_signature = GpgSignature.find_by(commit_sha: sha)
- return cached_signature if cached_signature.present?
-
@signature = Gitlab::Gpg::Commit.new(self).signature
end