diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-03-16 16:21:48 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-03-16 16:23:08 -0400 |
commit | 951f35b060bec53cba93252cc5c7aea21568594d (patch) | |
tree | 11cc02f0bc7b62f4143c75e4384367e85d1baa34 | |
parent | c67a550db509209e0044f9fc3581fdfe393622ce (diff) | |
download | expac-951f35b060bec53cba93252cc5c7aea21568594d.tar.xz |
redundant logic is redundant
-rw-r--r-- | expac.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |