aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/http
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/http')
-rw-r--r--crates/shirabe/src/util/http/curl_downloader.rs17
1 files changed, 1 insertions, 16 deletions
diff --git a/crates/shirabe/src/util/http/curl_downloader.rs b/crates/shirabe/src/util/http/curl_downloader.rs
index 98f874a..3a47d4f 100644
--- a/crates/shirabe/src/util/http/curl_downloader.rs
+++ b/crates/shirabe/src/util/http/curl_downloader.rs
@@ -736,22 +736,7 @@ impl CurlDownloader {
}
pub fn tick(&mut self) -> anyhow::Result<()> {
- if count(&PhpMixed::Array(
- self.jobs
- .iter()
- .map(|(k, v)| {
- (
- k.to_string(),
- Box::new(PhpMixed::Array(
- v.iter()
- .map(|(k2, v2)| (k2.clone(), Box::new(v2.clone())))
- .collect(),
- )),
- )
- })
- .collect(),
- )) == 0
- {
+ if self.jobs.is_empty() {
return Ok(());
}