forked from security/hakurei
system: improve tests of the I struct
This cleans up for the test overhaul of this package. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user