remove unnecessary blank lines and wrong error log
This commit is contained in:
parent
3f9016430f
commit
33f3165296
1 changed files with 1 additions and 3 deletions
|
@ -368,9 +368,7 @@ func verifySign(s *packet.Signature, h hash.Hash, k *GPGKey) error {
|
||||||
|
|
||||||
// ParseCommitWithSignature check if signature is good against keystore.
|
// ParseCommitWithSignature check if signature is good against keystore.
|
||||||
func ParseCommitWithSignature(c *git.Commit) *CommitVerification {
|
func ParseCommitWithSignature(c *git.Commit) *CommitVerification {
|
||||||
|
|
||||||
if c.Signature != nil {
|
if c.Signature != nil {
|
||||||
|
|
||||||
//Parsing signature
|
//Parsing signature
|
||||||
sig, err := extractSignature(c.Signature.Signature)
|
sig, err := extractSignature(c.Signature.Signature)
|
||||||
if err != nil { //Skipping failed to extract sign
|
if err != nil { //Skipping failed to extract sign
|
||||||
|
@ -392,7 +390,7 @@ func ParseCommitWithSignature(c *git.Commit) *CommitVerification {
|
||||||
}
|
}
|
||||||
|
|
||||||
keys, err := ListGPGKeys(committer.ID)
|
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)
|
log.Error(3, "ListGPGKeys: %v", err)
|
||||||
return &CommitVerification{
|
return &CommitVerification{
|
||||||
Verified: false,
|
Verified: false,
|
||||||
|
|
Reference in a new issue