mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-04-19 19:56: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 {
|
fn to_listed_string(&self) -> String {
|
||||||
format!(
|
format!(
|
||||||
"Merkmalskatalog ({}) '{}' in Revision '{}'",
|
"Merkmalskatalog ({}) '{}' in Revision '{}'",
|
||||||
match self.is_system_library_content() {
|
if self.is_system_library_content() {
|
||||||
true => style("S").yellow(),
|
style("S").yellow()
|
||||||
_ => style("u"),
|
} else {
|
||||||
|
style("u")
|
||||||
},
|
},
|
||||||
style(&self.name).yellow(),
|
style(&self.name).yellow(),
|
||||||
style(&self.revision).yellow()
|
style(&self.revision).yellow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user