feat: improve error handling and code format (#2682)

* feat: improve error process and code format

* feat: improve error process and code format
This commit is contained in:
DacongDA
2024-02-07 20:55:33 +08:00
committed by GitHub
parent 3ac4be64b8
commit 5c4e22288e
3 changed files with 6 additions and 4 deletions

View File

@ -312,8 +312,6 @@ func GetPaymentProvider(p *Provider) (pp.PaymentProvider, error) {
} else {
return nil, fmt.Errorf("the payment provider type: %s is not supported", p.Type)
}
return nil, nil
}
func (p *Provider) GetId() string {