This commit is contained in:
Gerasimos (Makis) Maropoulos 2022-03-03 02:34:23 +02:00
parent f397c30caf
commit e2222a8066
No known key found for this signature in database
GPG Key ID: 66FCC29BD385FCA6

View File

@ -240,6 +240,10 @@ func (g *Group) getAllChildren() []*Group {
// Unwrap implements the dynamic std errors interface and it returns the parent Group. // Unwrap implements the dynamic std errors interface and it returns the parent Group.
func (g *Group) Unwrap() error { func (g *Group) Unwrap() error {
if g == nil {
return nil
}
return g.parent return g.parent
} }