mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 15:23:51 +01:00
improve error handling for system info metrics
This commit is contained in:
@@ -122,3 +122,9 @@ func (b *Builder) AddRange(errs ...error) *Builder {
|
||||
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *Builder) ForEach(fn func(error)) {
|
||||
for _, err := range b.errs {
|
||||
fn(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user