Passed
Push — master ( 70e599...9a4686 )
by eval
01:38
created

errors.ErrorList.Error   A

Complexity

Conditions 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
package errors
2
3
import "strings"
4
5
type ErrorList []error
0 ignored issues
show
introduced by
exported type ErrorList should have comment or be unexported
Loading history...
6
7
func (ee ErrorList) Error() string {
8
	var buf strings.Builder
9
	for _, e := range ee {
10
		buf.WriteString(e.Error())
11
	}
12
13
	return buf.String()
14
}
15