diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-03 02:16:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-03 02:16:10 +0900 |
| commit | 024d2ff7826a81db65eefa1843730b537ebdeef1 (patch) | |
| tree | b3d9048c075fec0759bd8886a07a252ca0ce4555 /system/mkdir.go | |
| parent | 6f719bc3c19d56279d2d76d3bcf8fb66ace2d2fb (diff) | |
system: improve tests of the I struct
This cleans up for the test overhaul of this package.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/mkdir.go')
| -rw-r--r-- | system/mkdir.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
