Skip to content

Commit

Permalink
feat: minor refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <manan@planetscale.com>
  • Loading branch information
GuptaManan100 committed Jan 21, 2025
1 parent 208db43 commit 9092420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/viperutil/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func LoadConfig() (context.CancelFunc, error) {

// isConfigFileNotFoundError checks if the error is caused because the file wasn't found.
func isConfigFileNotFoundError(err error) bool {
if _, ok := err.(viper.ConfigFileNotFoundError); ok {
if errors.As(err, &viper.ConfigFileNotFoundError{}) {
return true
}
return errors.Is(err, os.ErrNotExist)
Expand Down

0 comments on commit 9092420

Please sign in to comment.