signing.c: remove useless error check
CHECK_ERR checks gpg_err which is a local variable. Calling gpg_op_import_result cannot modify it. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
f4992960ad
commit
7f1360b440
1 changed files with 0 additions and 1 deletions
|
@ -404,7 +404,6 @@ static int key_import(alpm_handle_t *handle, alpm_pgpkey_t *key)
|
|||
gpg_err = gpgme_op_import_keys(ctx, keys);
|
||||
CHECK_ERR();
|
||||
result = gpgme_op_import_result(ctx);
|
||||
CHECK_ERR();
|
||||
/* we know we tried to import exactly one key, so check for this */
|
||||
if(result->considered != 1 || !result->imports) {
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "could not import key, 0 results\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue