Skip to content

Commit e10e5c7

Browse files
authored
chore: trim trailing whitespace when parsing version tag (#87)
1 parent 88abbf4 commit e10e5c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct Versions {
5050

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

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

0 commit comments

Comments
 (0)