Skip to content

Commit

Permalink
fix auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr1Furious committed Oct 12, 2024
1 parent 2a73540 commit 54ba1a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launcher/src/launcher/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ pub enum UpdateError {
}

async fn fetch_new_version() -> Result<String, Box<dyn Error + Send + Sync>> {
if let Some(update_url) = &*UPDATE_URL {
if let Some(version_url) = &*VERSION_URL {
let client = Client::new();
let response = client.get(update_url).send().await?.error_for_status()?;
let response = client.get(version_url).send().await?.error_for_status()?;
let text = response.text().await?;
Ok(text.trim().to_string())
} else {
Expand Down

0 comments on commit 54ba1a0

Please sign in to comment.