aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/spx11.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-10 03:19:09 +0900
committerOphestra <cat@gensokyo.uk>2025-10-10 03:19:09 +0900
commit109aaee6593ac6e72d23b817e5b75292c2ed7bed (patch)
tree459fbd8f8c0685b33002fb1f9c101c9b39a38b6a /internal/app/spx11.go
parent22ee5ae151fa991cf23dbf1b3efb5a0d6fb9b092 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spx11.go')
-rw-r--r--internal/app/spx11.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/spx11.go b/internal/app/spx11.go
index 219f2cb2..a597e344 100644
--- a/internal/app/spx11.go
+++ b/internal/app/spx11.go
@@ -25,7 +25,7 @@ type spX11Op struct {
}
func (s *spX11Op) toSystem(state *outcomeStateSys) error {
- if state.config.Enablements.Unwrap()&hst.EX11 == 0 {
+ if state.et&hst.EX11 == 0 {
return errNotEnabled
}