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
+4 -4
View File
@@ -16,10 +16,10 @@ func debugf(format string, args ...any) {
// SystemInfo holds system resource usage information.
type SystemInfo struct {
TotalMemMB uint64 `json:"total_mem_mb"`
UsedMemMB uint64 `json:"used_mem_mb"`
AvailMemMB uint64 `json:"avail_mem_mb"`
MemPercent float64 `json:"mem_percent"`
TotalMemMB uint64 `json:"total_mem_mb"`
UsedMemMB uint64 `json:"used_mem_mb"`
AvailMemMB uint64 `json:"avail_mem_mb"`
MemPercent float64 `json:"mem_percent"`
DiskTotalGB float64 `json:"disk_total_gb"`
DiskUsedGB float64 `json:"disk_used_gb"`
+1 -1
View File
@@ -276,7 +276,7 @@ func diskModel(device string) string {
type ProbeStatus int
const (
ProbeConnected ProbeStatus = iota
ProbeConnected ProbeStatus = iota
ProbeDisconnected
ProbeTimeout
)
+1 -1
View File
@@ -88,7 +88,7 @@ func CheckBackupDestination(path string) DestinationHealth {
type ProbeStatus int
const (
ProbeConnected ProbeStatus = iota
ProbeConnected ProbeStatus = iota
ProbeDisconnected
ProbeTimeout
)