mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +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)
|
|
}
|