mirror of
				https://github.com/pcvolkmer/osc-variant.git
				synced 2025-11-04 09:56:11 +00:00 
			
		
		
		
	refactor: use if/else expression
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user