mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-02 05:40:11 +00:00
dont use unwrap
This commit is contained in:
parent
3c2945fa58
commit
0263cd83a2
|
@ -81,8 +81,8 @@ impl UrlVerifier for VerifyUrlData {
|
|||
async fn verify(&self, url: &Url) -> Result<(), &'static str> {
|
||||
let local_site_data = blocking(self.0.pool(), fetch_local_site_data)
|
||||
.await
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
.expect("read local site data")
|
||||
.expect("read local site data");
|
||||
check_apub_id_valid(url, &local_site_data, self.0.settings())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue