Skip to content

Commit

Permalink
Revert: e8ef74a as it does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintenQVD0 authored Oct 9, 2024
1 parent e497317 commit 60feaaf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,12 @@ type SearchRecursion struct {
// This function does not modify the currently stored global configuration.
func NewAtPath(path string) (*Configuration, error) {
var c Configuration

// Configures the default values for many of the configuration options present
// in the structs. Values set in the configuration file take priority over the
// default values.
if err := defaults.Set(&c); err != nil {
return nil, err
}
// Track the location where we created this configuration.
c.path = path
return &c, nil
Expand Down Expand Up @@ -532,13 +537,6 @@ func FromFile(path string) error {
return err
}

// Configures the default values for many of the configuration options present
// in the structs. Values set in the configuration file take priority over the
// default values.
if err := defaults.Set(&c); err != nil {
return err
}

// Store this configuration in the global state.
Set(c)
return nil
Expand Down

0 comments on commit 60feaaf

Please sign in to comment.