From 024d2ff7826a81db65eefa1843730b537ebdeef1 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 3 Sep 2025 02:16:10 +0900 Subject: system: improve tests of the I struct This cleans up for the test overhaul of this package. Signed-off-by: Ophestra --- system/xhost.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/xhost.go') diff --git a/system/xhost.go b/system/xhost.go index 2ed1acff..22a0669f 100644 --- a/system/xhost.go +++ b/system/xhost.go @@ -22,7 +22,7 @@ func (x XHostOp) apply(*I) error { } func (x XHostOp) revert(_ *I, ec *Criteria) error { - if ec.hasType(x) { + if ec.hasType(x.Type()) { msg.Verbosef("deleting entry %s from X11", x) return newOpError("xhost", xcb.ChangeHosts(xcb.HostModeDelete, xcb.FamilyServerInterpreted, "localuser\x00"+string(x)), false) -- cgit v1.3.1