GATE-6, GATE-7: gofmt over the watchdog and its tools
The repository's gofmt check refused heads.go, headtools.go and main.go as written; a stale comment of the stalled conditions goes with them. Builds: design 47 H §740, §742 Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
@@ -16,8 +16,8 @@ import (
|
||||
"time"
|
||||
|
||||
"git.novox.be/novox/mesh-contracts/health-and-repair/go/seats/meshconditions"
|
||||
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-forge-bridge/forgemsg"
|
||||
seat "git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/seats/meshdelivery"
|
||||
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-forge-bridge/forgemsg"
|
||||
stdio "git.novox.be/novox/mesh-sdk/go"
|
||||
"git.novox.be/novox/mesh-sdk/go/keys"
|
||||
)
|
||||
|
||||
@@ -53,7 +53,9 @@ func (h *Holder) HeadsHeld() (map[string]any, error) {
|
||||
}
|
||||
lines = append(lines, HeadLine{Repository: repository, Branch: branch, Head: v.Head, Since: timeText(&v.Since), Finding: raised[key]})
|
||||
}
|
||||
sort.Slice(lines, func(i, j int) bool { return headKey(lines[i].Repository, lines[i].Branch) < headKey(lines[j].Repository, lines[j].Branch) })
|
||||
sort.Slice(lines, func(i, j int) bool {
|
||||
return headKey(lines[i].Repository, lines[i].Branch) < headKey(lines[j].Repository, lines[j].Branch)
|
||||
})
|
||||
return map[string]any{"heads": lines}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,6 @@ func main() {
|
||||
Logf: logf,
|
||||
Source: kvSource{},
|
||||
Owed: seatOwed{say: stdio.SeatPublish},
|
||||
// The gate says what stalled to the operator itself (issue 1275, ADR 0437 §9).
|
||||
Heads: kvHeads{},
|
||||
}
|
||||
h.init()
|
||||
|
||||
Reference in New Issue
Block a user