Chore: Use a more direct and less error-prone return value (#4008)

Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
pinglanlu 2024-11-12 23:44:41 +08:00 committed by GitHub
parent 48ac662298
commit 7b4a686b74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -51,5 +51,5 @@ func (c *Config) getCertPool() (*x509.CertPool, error) {
return nil, errors.New("append cert to root").AtWarning().Base(err)
}
}
return pool, err
return pool, nil
}