You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: drop trivial helpers, use new(v) and data.DateLayout (#958)
## Summary
- Remove `fmtIntAlways` and `fmtSize` wrappers in `cmd/micasa/show.go`;
inline `strconv.Itoa` / `strconv.FormatInt` at call sites.
- Collapse `if val { return "true" } return "false"` in `ops_tree.go` to
`strconv.FormatBool`.
- Delete `ptr[T any]` test helpers in `internal/data` and `internal/app`
in favor of Go 1.26's `new(v)` builtin; deduplicate scattered `ptr` /
`ptrTime` closures in `dashboard_test.go` into one package-level
`ptrTime`.
- Have `fmtMoney` delegate to `fmtMoneyVal` instead of duplicating the
format string.
- Replace hardcoded `"2006-01-02"` literals with the existing
`data.DateLayout` constant where the same package already used it.
- Inline `jn()` test helper in `internal/extract/shadow_test.go`; call
sites read the same as `json.Number(...)` without the indirection.
0 commit comments