prefer match
This commit is contained in:
parent
0cd2d364aa
commit
e5c9cb6024
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user