This commit is contained in:
Thoronium
2024-10-30 16:31:09 -06:00
parent dcc2b1707b
commit 422ce59f96
3 changed files with 4 additions and 4 deletions

View File

@@ -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
}