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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user