Skip to content

Commit

Permalink
Fix not compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
kilpkonn committed Jan 11, 2022
1 parent d993e1a commit d98ed57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scm/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit d98ed57

Please sign in to comment.