Fix: staticcheck error

This commit is contained in:
Dreamacro 2021-07-06 00:33:13 +08:00
parent d755383e39
commit b4292d0972

View file

@ -204,7 +204,7 @@ func stopCompatibleProvider(pd *CompatibleProvider) {
func NewCompatibleProvider(name string, proxies []C.Proxy, hc *HealthCheck) (*CompatibleProvider, error) {
if len(proxies) == 0 {
return nil, errors.New("Provider need one proxy at least")
return nil, errors.New("provider need one proxy at least")
}
if hc.auto() {