mirror of
https://github.com/NotAShelf/microfetch.git
synced 2026-01-15 13:07:46 +00:00
refactor: remove some redundant error types (#4)
This commit is contained in:
parent
927f6077b4
commit
ae76a0cbe1
5 changed files with 35 additions and 39 deletions
|
|
@ -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()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue