mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +01:00
Clippy
This commit is contained in:
@@ -36,8 +36,8 @@ pub(crate) async fn valid_url(url: String) -> bool {
|
||||
.await
|
||||
.ok();
|
||||
|
||||
if response.is_some() {
|
||||
return response.unwrap().status().as_str() == "200";
|
||||
if let Some(thing) = response {
|
||||
return thing.status().as_str() == "200";
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user