refactor handler_main
This commit is contained in:
parent
a412eb08d6
commit
2705db6b91
2 changed files with 27 additions and 33 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue