Skip to content

Commit

Permalink
Update config/config.go
Browse files Browse the repository at this point in the history
Co-authored-by: Herman Schaaf <[email protected]>
  • Loading branch information
mnorbury and hermanschaaf committed Oct 17, 2023
1 parent 02147ac commit db1642d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func SetConfigHome(configDir string) error {
return nil
}

// UnSetConfigHome unsets the configuration home directory returning to the default value
func UnSetConfigHome() error {
// UnsetConfigHome unsets the configuration home directory returning to the default value
func UnsetConfigHome() error {
if err := os.Unsetenv("XDG_CONFIG_HOME"); err != nil {
return fmt.Errorf("failed to unset XDG_CONFIG_HOME: %w", err)
}
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestSetConfigHome(t *testing.T) {
_, err = os.Stat(path.Join(configDir, "cloudquery", "config.json"))
r.NoError(err)

err = UnSetConfigHome()
err = UnsetConfigHome()
r.NoError(err)

// check that we are no longer set to the temporary directory
Expand Down

0 comments on commit db1642d

Please sign in to comment.