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/mkdir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/mkdir.go') diff --git a/system/mkdir.go b/system/mkdir.go index 4fba4afd..9b92c0f9 100644 --- a/system/mkdir.go +++ b/system/mkdir.go @@ -50,7 +50,7 @@ func (m *MkdirOp) revert(_ *I, ec *Criteria) error { return nil } - if ec.hasType(m) { + if ec.hasType(m.Type()) { msg.Verbose("destroying ephemeral directory", m) return newOpError("mkdir", os.Remove(m.path), true) } else { -- cgit v1.3.1