libalpm: use else when setting fingerprint
The docs [1] say keyid will always be there, so no need to check if it exists. [1] https://www.gnupg.org/documentation/manuals/gpgme/Key-objects.html Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
c5c6633dd1
commit
e187aa9b48
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ static int key_search_keyserver(alpm_handle_t *handle, const char *fpr,
|
|||
pgpkey->data = key;
|
||||
if(key->subkeys->fpr) {
|
||||
pgpkey->fingerprint = key->subkeys->fpr;
|
||||
} else if(key->subkeys->keyid) {
|
||||
} else {
|
||||
pgpkey->fingerprint = key->subkeys->keyid;
|
||||
}
|
||||
pgpkey->uid = key->uids->uid;
|
||||
|
|
Loading…
Add table
Reference in a new issue