xbps-bin/fetch.c: use else if conditionals.
--HG-- branch : progress_callback
This commit is contained in:
1 parent
9611f3e412
commit
81b6b62aef
1 file changed
+2
-4
@@ -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);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user