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/link.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/link.go')
| -rw-r--r-- | system/link.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
