Skip to content

Commit

Permalink
[beta] Development Build v21 • Beta. Fix auto start installer?
Browse files Browse the repository at this point in the history
  • Loading branch information
DIDIRUS4 committed Jan 16, 2024
1 parent a7bdfa8 commit 94a30e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion theseus/src/api/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ async fn download_file(download_url: &str, local_filename: &str, os_type: &str,
if (auto_update_supported) {

Check warning on line 15 in theseus/src/api/download.rs

View workflow job for this annotation

GitHub Actions / clippy

unnecessary parentheses around `if` condition

warning: unnecessary parentheses around `if` condition --> theseus/src/api/download.rs:15:8 | 15 | if (auto_update_supported) { | ^ ^ | = note: `#[warn(unused_parens)]` on by default help: remove these parentheses | 15 - if (auto_update_supported) { 15 + if auto_update_supported { |
let status;
if (os_type.to_lowercase() == "Windows".to_lowercase()) {

Check warning on line 17 in theseus/src/api/download.rs

View workflow job for this annotation

GitHub Actions / clippy

unnecessary parentheses around `if` condition

warning: unnecessary parentheses around `if` condition --> theseus/src/api/download.rs:17:12 | 17 | if (os_type.to_lowercase() == "Windows".to_lowercase()) { | ^ ^ | help: remove these parentheses | 17 - if (os_type.to_lowercase() == "Windows".to_lowercase()) { 17 + if os_type.to_lowercase() == "Windows".to_lowercase() { |
status = Command::new(full_path.to_str().unwrap_or_default())
status = Command::new("cmd")
.arg("/C")
.arg(format!("start \"{}\"", full_path.to_str().unwrap_or_default()))
.status()
.await
.expect("[download_file] • Failed to execute command");
Expand Down

0 comments on commit 94a30e9

Please sign in to comment.