This commit is contained in:
Moritz F. Kuntze 2019-07-18 14:11:34 +02:00 committed by GitHub
parent 90bc399c9f
commit 601673808d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,11 @@ import (
)
type Key struct {
kr crypto.KeyRing
if len(k.kr.GetEntities()) > 0 {
return k.kr.GetEntities()[0].PrimaryKey.KeyIdShortString()
} else {
return ""
}
}
func (k *Key) GetKeyID() string {