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)
|
||||
stat_start(&xs);
|
||||
|
||||
if (xfpd->cb_update)
|
||||
else if (xfpd->cb_update)
|
||||
stat_update(xfpd, &xs);
|
||||
|
||||
if (xfpd->cb_end)
|
||||
else if (xfpd->cb_end)
|
||||
stat_end(xfpd, &xs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user