Fix #287.
This commit is contained in:
parent
90bc399c9f
commit
601673808d
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue