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/wayland.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/wayland.go') diff --git a/system/wayland.go b/system/wayland.go index 999feee7..f6e50511 100644 --- a/system/wayland.go +++ b/system/wayland.go @@ -59,7 +59,7 @@ func (w *WaylandOp) apply(sys *I) error { } func (w *WaylandOp) revert(_ *I, ec *Criteria) error { - if ec.hasType(w) { + if ec.hasType(w.Type()) { msg.Verbosef("removing wayland socket on %q", w.dst) if err := os.Remove(w.dst); err != nil && !errors.Is(err, os.ErrNotExist) { return newOpError("wayland", err, true) -- cgit v1.3.1