fix a potential crash

This commit is contained in:
rustdesk 2023-09-26 10:26:42 +08:00
parent e0302d1f09
commit 28ddf6cf07

View File

@ -844,7 +844,7 @@ async fn check_software_update_() -> hbb_common::ResultType<()> {
.path()
.rsplit('/')
.next()
.unwrap();
.unwrap_or_default();
let response_url = latest_release_response.url().to_string();