From f0ebb0ab5b15b4ab468b0bf92ecfcadf5dbe837b Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Wed, 25 Mar 2020 08:46:23 -0600 Subject: [PATCH] compare: return the right delta Heh, copypasta error. Amazing I'm the first person who noticed this :) Signed-off-by: Tycho Andersen --- compare.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compare.go b/compare.go index b5f9cb4..e17757d 100644 --- a/compare.go +++ b/compare.go @@ -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 }