From db1642d2bbff4b99967adef7df0a2521da7197f8 Mon Sep 17 00:00:00 2001 From: Martin Norbury Date: Tue, 17 Oct 2023 15:46:55 +0100 Subject: [PATCH] Update config/config.go Co-authored-by: Herman Schaaf --- config/config.go | 4 ++-- config/config_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 3e4f85c..d2270ab 100644 --- a/config/config.go +++ b/config/config.go @@ -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) } diff --git a/config/config_test.go b/config/config_test.go index 0148117..5705b9b 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -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