diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-28 23:14:26 +0800 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-06-28 19:00:08 +0200 |
commit | 33f3165296613c819ed82612da2f6738c1301ec1 (patch) | |
tree | 72abf9d1b46edf8dbc528eae8ac69fd995f01d5b /models/gpg_key.go | |
parent | 3f9016430f5a712bdff05a9cc941a287be0f217d (diff) | |
download | gitea-33f3165296613c819ed82612da2f6738c1301ec1.tar.gz gitea-33f3165296613c819ed82612da2f6738c1301ec1.zip |
remove unnecessary blank lines and wrong error log
Diffstat (limited to 'models/gpg_key.go')
-rw-r--r-- | models/gpg_key.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/models/gpg_key.go b/models/gpg_key.go index d39cc54ce6..8d10511002 100644 --- a/models/gpg_key.go +++ b/models/gpg_key.go @@ -368,9 +368,7 @@ func verifySign(s *packet.Signature, h hash.Hash, k *GPGKey) error { // ParseCommitWithSignature check if signature is good against keystore. func ParseCommitWithSignature(c *git.Commit) *CommitVerification { - if c.Signature != nil { - //Parsing signature sig, err := extractSignature(c.Signature.Signature) if err != nil { //Skipping failed to extract sign @@ -392,7 +390,7 @@ func ParseCommitWithSignature(c *git.Commit) *CommitVerification { } keys, err := ListGPGKeys(committer.ID) - if err != nil || len(keys) == 0 { //Skipping failed to get gpg keys of user + if err != nil { //Skipping failed to get gpg keys of user log.Error(3, "ListGPGKeys: %v", err) return &CommitVerification{ Verified: false, |