1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

lib/libalpm/handle.c: Removed redundant if condition

Signed-off-by: Helder Martins <heldermartins89@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Helder Martins 2011-08-29 22:07:26 +01:00 committed by Dan McGee
parent 515720a6fc
commit d74dad79b7

View File

@ -132,10 +132,9 @@ int _alpm_handle_unlock(alpm_handle_t *handle)
ASSERT(handle->lockfile != NULL, return -1);
ASSERT(handle->lckstream != NULL, return 0);
if(handle->lckstream != NULL) {
fclose(handle->lckstream);
handle->lckstream = NULL;
}
fclose(handle->lckstream);
handle->lckstream = NULL;
if(unlink(handle->lockfile) && errno != ENOENT) {
return -1;
}