mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-12-22 13:56:30 +00:00
compare: return the right delta
Heh, copypasta error. Amazing I'm the first person who noticed this :) Signed-off-by: Tycho Andersen <tycho@tycho.ws>
This commit is contained in:
parent
2b899d3655
commit
f0ebb0ab5b
1 changed files with 2 additions and 2 deletions
|
@ -161,10 +161,10 @@ func (k KeyDelta) Old() *string {
|
|||
|
||||
// New returns the value of the KeyDeltaVal entry in the "new" DirectoryHierarchy
|
||||
// (as determined by the ordering of parameters to Compare). Returns nil if
|
||||
// there was no entry in the "old" DirectoryHierarchy.
|
||||
// there was no entry in the "new" DirectoryHierarchy.
|
||||
func (k KeyDelta) New() *string {
|
||||
if k.diff == Modified || k.diff == Extra {
|
||||
return sPtr(k.old)
|
||||
return sPtr(k.new)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue