prefer match

This commit is contained in:
Love 2024-07-25 21:03:43 +02:00
parent 0cd2d364aa
commit e5c9cb6024

View File

@ -18,10 +18,9 @@ async fn main() {
}
let exit_listener = ExitListener::new();
let config = if let Some(aux) = utils::get_config().await {
aux
} else {
return;
let config = match utils::get_config().await {
Some(aux) => aux,
None => return,
};
let mut cloudflare =