style: change one argument switch to if
This commit is contained in:
		
					parent
					
						
							
								0813126058
							
						
					
				
			
			
				commit
				
					
						529bbbde4d
					
				
			
		
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -208,8 +208,7 @@ func ViewPackageVersion(ctx *context.Context) {
 | 
				
			||||||
		groups := make(container.Set[string])
 | 
							groups := make(container.Set[string])
 | 
				
			||||||
		for _, f := range pd.Files {
 | 
							for _, f := range pd.Files {
 | 
				
			||||||
			for _, pp := range f.Properties {
 | 
								for _, pp := range f.Properties {
 | 
				
			||||||
				switch pp.Name {
 | 
									if pp.Name == arch_model.PropertyDistribution {
 | 
				
			||||||
				case arch_model.PropertyDistribution:
 | 
					 | 
				
			||||||
					groups.Add(pp.Value)
 | 
										groups.Add(pp.Value)
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue