From 109aaee6593ac6e72d23b817e5b75292c2ed7bed Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 10 Oct 2025 03:19:09 +0900 Subject: internal/app: copy parts of config to state This is less error-prone than passing the address to the entire hst.Config struct, and reduces the likelihood of accidentally clobbering hst.Config. This also improves ease of testing. Signed-off-by: Ophestra --- internal/app/sppulse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/app/sppulse.go') diff --git a/internal/app/sppulse.go b/internal/app/sppulse.go index 9fc22f6e..8a2e753c 100644 --- a/internal/app/sppulse.go +++ b/internal/app/sppulse.go @@ -24,7 +24,7 @@ type spPulseOp struct { } func (s *spPulseOp) toSystem(state *outcomeStateSys) error { - if state.config.Enablements.Unwrap()&hst.EPulse == 0 { + if state.et&hst.EPulse == 0 { return errNotEnabled } -- cgit v1.3.1