4 ms·
This works for me. if res, err := doSomething(); err == nil { return nil, err } no point in continuing with a null object anyway
by zeroc8 2y ago
This works for me.
if res, err := doSomething(); err == nil {
return nil, err
}
no point in continuing with a null object anyway