style: gofmt normalization — no logic changes
gofmt -w across the controller tree (46 files) so gofmt -l is empty — disarms the
formatting landmine where a targeted edit + accidental gofmt -w swept ~46 unrelated
files. Pure formatting: whitespace + gofmt's optional-semicolon removal in reflowed
inline closures. One doc comment reworded ('' -> 'the empty string') to avoid gofmt's
Go-1.19 doc-comment typographic substitition ('' -> curly quote) muddying its meaning.
No build/vet/test behavior change.
This commit is contained in:
@@ -236,11 +236,11 @@ func TestBackupsTemplate_Tier3Live(t *testing.T) {
|
||||
html := renderBackupPage(t, "backups_apps", data)
|
||||
|
||||
for _, want := range []string{
|
||||
"Sikeres", // active badge (LastStatus ok)
|
||||
"Sikeres", // active badge (LastStatus ok)
|
||||
"restic → u629488-sub1.your-storagebox.de", // the real off-box host
|
||||
"Utolsó:", // a relative last-run time is shown
|
||||
"Kikapcsolva", // radarr off row
|
||||
"Bekapcsolás", // radarr enable link
|
||||
"Utolsó:", // a relative last-run time is shown
|
||||
"Kikapcsolva", // radarr off row
|
||||
"Bekapcsolás", // radarr enable link
|
||||
`href="/backups/remote#offbox-section"`, // the cross-page anchor jump target (IA split)
|
||||
} {
|
||||
if !strings.Contains(html, want) {
|
||||
@@ -257,13 +257,13 @@ func TestBackupsTemplate_Tier3Live(t *testing.T) {
|
||||
}
|
||||
}
|
||||
for _, banned := range []string{
|
||||
"hamarosan", // the dead placeholder copy
|
||||
"Tier2DriveGroups", // dead template field
|
||||
"ResticPassword", // dead template field
|
||||
"restic-pw", // dead element id
|
||||
"toggleTier", // dead JS fn
|
||||
"details-tier", // dead Részletek markup
|
||||
"Részletek", // the removed card title
|
||||
"hamarosan", // the dead placeholder copy
|
||||
"Tier2DriveGroups", // dead template field
|
||||
"ResticPassword", // dead template field
|
||||
"restic-pw", // dead element id
|
||||
"toggleTier", // dead JS fn
|
||||
"details-tier", // dead Részletek markup
|
||||
"Részletek", // the removed card title
|
||||
"2026-07-11T02:00:00Z", // raw RFC3339 must never leak (timeAgoStr wraps it)
|
||||
} {
|
||||
if strings.Contains(html, banned) {
|
||||
|
||||
Reference in New Issue
Block a user