fix: more nlreturn and testifylint issues

- Add blank lines before return statements
- Use require.Error instead of assert.Error for error assertions
- Keep exact float64 comparisons as-is (they are integers from JSON)
This commit is contained in:
2025-06-20 09:40:17 -07:00
parent 2a1e0337fd
commit 9e35bf21a3
2 changed files with 3 additions and 2 deletions

View File

@@ -50,5 +50,6 @@ func DetermineStateDir(customConfigDir string) string {
homeDir, _ := os.UserHomeDir()
return filepath.Join(homeDir, ".config", AppID)
}
return filepath.Join(configDir, AppID)
}