fix: use errors.As as viper uses a custom error struct

This commit is contained in:
Derrick Hammer 2024-03-25 22:05:24 -04:00
parent eef49c34be
commit fc6240c149
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ func newConfig() (*viper.Viper, error) {
err := viper.ReadInConfig()
if err != nil {
if !errors.Is(err, &viper.ConfigFileNotFoundError{}) {
if !errors.As(err, &viper.ConfigFileNotFoundError{}) {
return nil, err
}