diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-15 11:28:28 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:42:53 +0300 |
commit | 34810acd6c3d4dd27f43f6f07e47b4e06bb95f82 (patch) | |
tree | 85e29ac5cb80247e5d8236453170100dd2047cd2 /app/models/commit.rb | |
parent | 7b616d39efaa7cba933d17dfae010d393c18d057 (diff) |
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.rb | 5 |
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 |