Silence unused-sim warning in Ch05

dm.sim was destructured for the guard but never used inside the body.
Replaced with a nil-check on the same property.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
saymrwulf 2026-05-04 11:23:48 +02:00
parent 35d1b54248
commit f9a438e066

View file

@ -40,7 +40,7 @@ struct Ch05_Voting: View {
}
private func render(context: inout GraphicsContext, size: CGSize, time: Double) {
guard let sim = dm.sim,
guard dm.sim != nil,
let snap = dm.honestData(step: dataStep) else { return }
let nodes = dm.castOrderedNodes() // Aaron, Ben, Carl, Dave at top peers below