mirror of
				https://github.com/Dadido3/go-typst.git
				synced 2025-11-04 05:09:35 +00:00 
			
		
		
		
	Fix linter warning about yoda conditions
This commit is contained in:
		
							parent
							
								
									d66d337897
								
							
						
					
					
						commit
						473563756d
					
				@ -15,10 +15,10 @@ func TestCliOptions(t *testing.T) {
 | 
				
			|||||||
	if len(args) != 2 {
 | 
						if len(args) != 2 {
 | 
				
			||||||
		t.Errorf("wrong number of arguments, expected 2, got %d", len(args))
 | 
							t.Errorf("wrong number of arguments, expected 2, got %d", len(args))
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if "--font-path" != args[0] {
 | 
						if args[0] != "--font-path" {
 | 
				
			||||||
		t.Error("wrong font path option, expected --font-path, got", args[0])
 | 
							t.Error("wrong font path option, expected --font-path, got", args[0])
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if "somepath/to/somewhere"+string(os.PathListSeparator)+"another/to/somewhere" != args[1] {
 | 
						if args[1] != "somepath/to/somewhere"+string(os.PathListSeparator)+"another/to/somewhere" {
 | 
				
			||||||
		t.Error("wrong font path option, expected my two paths concatenated, got", args[1])
 | 
							t.Error("wrong font path option, expected my two paths concatenated, got", args[1])
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user