refactor: remove some redundant error types (#4)

This commit is contained in:
Sora 2024-08-13 22:59:11 +02:00 committed by GitHub
commit ae76a0cbe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 35 additions and 39 deletions

View file

@ -23,5 +23,5 @@ pub fn get_os_pretty_name() -> Result<String, io::Error> {
.to_string()
});
Ok(pretty_name.unwrap_or_else(|| "Unknown".to_string()))
Ok(pretty_name.unwrap_or("Unknown".to_string()))
}