summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-03-16 16:21:48 -0400
committerDave Reisner <dreisner@archlinux.org>2014-03-16 16:23:08 -0400
commit951f35b060bec53cba93252cc5c7aea21568594d (patch)
tree11cc02f0bc7b62f4143c75e4384367e85d1baa34
parentc67a550db509209e0044f9fc3581fdfe393622ce (diff)
downloadexpac-951f35b060bec53cba93252cc5c7aea21568594d.tar.xz
redundant logic is redundant
-rw-r--r--expac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expac.c b/expac.c
index 2c652e9..0c6250e 100644
--- a/expac.c
+++ b/expac.c
@@ -707,8 +707,8 @@ static alpm_list_t *resolve_pkg(alpm_list_t *targets) {
continue;
}
- if (!(pkg = alpm_db_get_pkg(repo, pkgname)) &&
- !(pkg = alpm_db_get_pkg(repo, pkgname))) {
+ pkg = alpm_db_get_pkg(repo, pkgname);
+ if (pkg == NULL) {
continue;
}