From d98ed57a9a6068865821b6b91289cce2d3e334fe Mon Sep 17 00:00:00 2001 From: Tavo Annus Date: Tue, 11 Jan 2022 15:14:54 +0200 Subject: [PATCH] Fix not compiling --- scm/git.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm/git.go b/scm/git.go index bf62cc0..ba33dd6 100644 --- a/scm/git.go +++ b/scm/git.go @@ -325,7 +325,7 @@ func DiffParentCommit(childCommit *git.Commit) (CommitStats, error) { var files []string err := childTree.Walk( - func(s string, entry *git.TreeEntry) int { + func(s string, entry *git.TreeEntry) error { switch entry.Filemode { case git.FilemodeTree: // directory where file entry is located @@ -334,7 +334,7 @@ func DiffParentCommit(childCommit *git.Commit) (CommitStats, error) { files = append(files, filepath.Join(path, entry.Name)) fileCnt++ } - return 0 + return nil }) if err != nil {