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:
2026-07-25 07:37:02 +02:00
parent 0a582ea07b
commit 2487681396
46 changed files with 221 additions and 193 deletions
@@ -41,9 +41,9 @@ func TestCatalogTemplateSlugs_IgnoresLifecycle(t *testing.T) {
t.Fatal(err)
}
}
mk("bookstack", "") // available
mk("plant-it", "abandoned") // withdrawn, but STILL IN THE CATALOG TREE
mk("someapp", "hidden") // withdrawn, ditto
mk("bookstack", "") // available
mk("plant-it", "abandoned") // withdrawn, but STILL IN THE CATALOG TREE
mk("someapp", "hidden") // withdrawn, ditto
m := &Manager{
cfg: &config.Config{Paths: config.PathsConfig{DataDir: dataDir}},
@@ -10,8 +10,8 @@ import (
// Creating ${USERDATA_PATH}/... then would land app data on the rootfs, shadowed when the drive returns.
// Companion red-proof: removing the gate in ensureUserdataMounts makes the dir get created → this fails.
func TestEnsureUserdataMounts_SkipsAbsentExternalDrive(t *testing.T) {
m := newMigManager(t, "") // sysDataPath = /mnt/sys_drive
m.isMountPoint = func(string) bool { return false } // external drive is NOT mounted
m := newMigManager(t, "") // sysDataPath = /mnt/sys_drive
m.isMountPoint = func(string) bool { return false } // external drive is NOT mounted
stackDir := t.TempDir()
if err := os.WriteFile(filepath.Join(stackDir, "docker-compose.yml"), []byte(beltCompose), 0o644); err != nil {
t.Fatal(err)