Skip to content

Commit e99002a

Browse files
mcuadrosajnavarro
authored andcommitted
utils: CommitStatsCalculator, quick and dirty fix for commits without parents
Signed-off-by: Máximo Cuadros <[email protected]>
1 parent fb353f2 commit e99002a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/function/commit_stats.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ func (f *CommitStats) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
6666
}
6767

6868
csc := utils.NewCommitStatsCalculator(r.Repository, c)
69-
return csc.Do()
69+
stats, _ := csc.Do()
70+
return stats, nil
7071
}
7172

7273
func resolveRepo(ctx *sql.Context, r sql.Row) (*gitbase.Repository, error) {

0 commit comments

Comments
 (0)