refactor handler_main

This commit is contained in:
Jun Kurihara 2025-05-16 18:27:02 +09:00
commit 2705db6b91
No known key found for this signature in database
GPG key ID: B184DE07B34AA676
2 changed files with 27 additions and 33 deletions

View file

@ -180,9 +180,5 @@ pub async fn entrypoint(
}
});
// returns the first error as the representative error
if let Some(e) = errs.next() {
return Err(e);
}
Ok(())
errs.next().map_or(Ok(()), |e| Err(e))
}