Skip to content

Commit

Permalink
fix lintter
Browse files Browse the repository at this point in the history
  • Loading branch information
vgmartinez committed Jan 11, 2025
1 parent 3c22a4d commit b8954a7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ func TestLoadConfig(t *testing.T) {
// Save current working directory
currentDir, err := os.Getwd()
assert.NoError(t, err)
defer os.Chdir(currentDir)
defer func() {
err := os.Chdir(currentDir)
if err != nil {
t.Errorf("Failed to change back to original directory: %v", err)
}
}()

// Create a temporary directory and change to it
tmpDir := t.TempDir()
Expand Down

0 comments on commit b8954a7

Please sign in to comment.