xbps-bin/fetch.c: use else if conditionals.
--HG-- branch : progress_callback
This commit is contained in:
parent
9611f3e412
commit
81b6b62aef
@ -180,10 +180,8 @@ fetch_file_progress_cb(void *data)
|
|||||||
|
|
||||||
if (xfpd->cb_start)
|
if (xfpd->cb_start)
|
||||||
stat_start(&xs);
|
stat_start(&xs);
|
||||||
|
else if (xfpd->cb_update)
|
||||||
if (xfpd->cb_update)
|
|
||||||
stat_update(xfpd, &xs);
|
stat_update(xfpd, &xs);
|
||||||
|
else if (xfpd->cb_end)
|
||||||
if (xfpd->cb_end)
|
|
||||||
stat_end(xfpd, &xs);
|
stat_end(xfpd, &xs);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user