summaryrefslogtreecommitdiff
path: root/diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'diff.go')
-rw-r--r--diff.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/diff.go b/diff.go
index 68ea9af..09481b4 100644
--- a/diff.go
+++ b/diff.go
@@ -423,8 +423,6 @@ func (v *Repository) DiffTreeToTree(oldTree, newTree *Tree, opts *DiffOptions) (
if notifyData != nil && notifyData.Diff != nil {
return notifyData.Diff, nil
- } else {
- return newDiffFromC(diffPtr), nil
}
-
+ return newDiffFromC(diffPtr), nil
}