Tidy stale comments and duplicated helpers
Comments carried over from web_server (CVLayout.vue, messageResolver, the Spotify token code) and ones outdated by later changes (the email window now anchors on ReceivedAt, failed emails are retried) are corrected. truncateRunes had a copy in handlers and in services; there is now one, services.TruncateRunes. cleanEmailBody's regexes are compiled once, a status check that could never fire is gone, and api.js loses its unused put/patch helpers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -140,15 +140,6 @@ func TestCaptureTokenAdminEndpoints(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestTruncateRunes(t *testing.T) {
|
||||
if got := truncateRunes("££££", 2); got != "££" {
|
||||
t.Fatalf("got %q; the cut must fall on a rune boundary", got)
|
||||
}
|
||||
if got := truncateRunes("short", 10); got != "short" {
|
||||
t.Fatalf("got %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
// fakeExtractor answers every page with posting and err, recording the
|
||||
// arguments it was called with.
|
||||
type fakeExtractor struct {
|
||||
|
||||
Reference in New Issue
Block a user