mirror of
https://github.com/saymrwulf/crisis.git
synced 2026-05-14 20:37:54 +00:00
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:
parent
35d1b54248
commit
f9a438e066
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue