Skip to content

Commit

Permalink
fix: do not display "Unknown" in os name
Browse files Browse the repository at this point in the history
closes #37
  • Loading branch information
Gobidev committed Feb 3, 2024
1 parent ac52b2c commit 77004a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pub fn os(general_readout: &GeneralReadout) -> Option<String> {
}
}
}
_ => general_readout.os_name().ok(),
_ => Some(general_readout.os_name().ok()?.replace("Unknown", "")),
}
}

Expand Down

0 comments on commit 77004a6

Please sign in to comment.