Skip to content

Commit

Permalink
chore: trim trailing whitespace when parsing version tag (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulHarsh007 authored Nov 10, 2024
1 parent 88abbf4 commit e10e5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct Versions {

fn outdated_version_check(message: String) {
let edition_tag = fs::read_to_string("/etc/edition-tag").unwrap_or("desktop".to_string());
let version_tag = fs::read_to_string("/etc/version-tag").unwrap_or_default();
let version_tag = fs::read_to_string("/etc/version-tag").unwrap_or_default().trim().to_string();

let window_ref = unsafe { &G_HELLO_WINDOW.as_ref().unwrap().window };

Expand Down

0 comments on commit e10e5c7

Please sign in to comment.