mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 11:46:50 +00:00
refactor: use if/else expression
This commit is contained in:
parent
e07ee7f593
commit
e45661c84c
@ -54,9 +54,10 @@ impl Listable for PropertyCatalogue {
|
||||
fn to_listed_string(&self) -> String {
|
||||
format!(
|
||||
"Merkmalskatalog ({}) '{}' in Revision '{}'",
|
||||
match self.is_system_library_content() {
|
||||
true => style("S").yellow(),
|
||||
_ => style("u"),
|
||||
if self.is_system_library_content() {
|
||||
style("S").yellow()
|
||||
} else {
|
||||
style("u")
|
||||
},
|
||||
style(&self.name).yellow(),
|
||||
style(&self.revision).yellow()
|
||||
|
Loading…
x
Reference in New Issue
Block a user