diff options
| author | Paul Buetow <paul@buetow.org> | 2025-06-28 00:00:15 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-06-28 00:00:15 +0300 |
| commit | 0e065b3b0f5e935fc769be2f1e84779fa9897e99 (patch) | |
| tree | e72775ab2fba73100955ac04b2c66e2d567fe7b6 /internal/ui/theme.go | |
| parent | e527f6084f4a3f592d06c25e34e08cc3769706a8 (diff) | |
fix: resolve test failures and improve code quality
- Fix file handle leak in SetDebugLog by tracking and closing previous files
- Add stderr capture to all taskwarrior commands for better error messages
- Fix timezone issues in date handling tests by normalizing to UTC
- Change Update method to pointer receiver for consistency
- Update all test type assertions to handle pointer receivers correctly
- Remove unused imports and variables
All tests now pass successfully.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/ui/theme.go')
| -rw-r--r-- | internal/ui/theme.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/ui/theme.go b/internal/ui/theme.go index 9d81aab..7faebf5 100644 --- a/internal/ui/theme.go +++ b/internal/ui/theme.go @@ -1,7 +1,6 @@ package ui import ( - "math/rand" "strconv" ) @@ -64,7 +63,7 @@ func RandomTheme() Theme { } func randColor() string { - return strconv.Itoa(rand.Intn(256)) + return strconv.Itoa(rng.Intn(256)) } func contrastColor(bg string) string { |
