Tidy stale comments and duplicated helpers
Test and publish / test (push) Successful in 1m6s
Test and publish / publish (push) Has been skipped

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:
2026-10-14 22:47:27 +01:00
co-authored by Claude Opus 5.5
parent f5b722d100
commit c7b60578e1
10 changed files with 54 additions and 72 deletions
+9
View File
@@ -279,3 +279,12 @@ func TestWithWorkplace(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)
}
}