Unnecessary local variable, result only needed once
This commit is contained in:
parent
4181d7adad
commit
a919e1d631
|
@ -232,7 +232,6 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd,
|
|||
char * specFile = NULL;
|
||||
Header h = NULL;
|
||||
rpmpsm psm = NULL;
|
||||
int isSource;
|
||||
rpmRC rpmrc;
|
||||
int i;
|
||||
|
||||
|
@ -251,9 +250,7 @@ rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd,
|
|||
|
||||
rpmrc = RPMRC_FAIL; /* assume failure */
|
||||
|
||||
isSource = headerIsSource(h);
|
||||
|
||||
if (!isSource) {
|
||||
if (!headerIsSource(h)) {
|
||||
rpmlog(RPMLOG_ERR, _("source package expected, binary found\n"));
|
||||
goto exit;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue