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/link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/link.go') diff --git a/system/link.go b/system/link.go index 4ba74ff9..544443e9 100644 --- a/system/link.go +++ b/system/link.go @@ -28,7 +28,7 @@ func (l *HardlinkOp) apply(*I) error { } func (l *HardlinkOp) revert(_ *I, ec *Criteria) error { - if ec.hasType(l) { + if ec.hasType(l.Type()) { msg.Verbosef("removing hard link %q", l.dst) return newOpError("hardlink", os.Remove(l.dst), true) } else { -- cgit v1.3.1