Former-commit-id: c949f746563f0ba08c3762e7ef49280e077b4e99
This commit is contained in:
Success Go 2020-01-07 19:41:48 +08:00
parent b2c5ec03fd
commit b5235c5fff

View File

@ -284,7 +284,7 @@ func (g *Group) Addf(format string, args ...interface{}) error {
return err return err
} }
// Err adds an error the the group, it transforms it to an Error type if necessary and returns it. // Err adds an error to the group, it transforms it to an Error type if necessary and returns it.
func (g *Group) Err(err error) error { func (g *Group) Err(err error) error {
if err == nil { if err == nil {
return nil return nil