mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			142 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			142 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package rtc
 | 
						|
 | 
						|
import "fmt"
 | 
						|
 | 
						|
func FlattenErrs(errors []error) error {
 | 
						|
	if len(errors) == 0 {
 | 
						|
		return nil
 | 
						|
	}
 | 
						|
	return fmt.Errorf("%v", errors)
 | 
						|
}
 |