Skip to content

Commit

Permalink
utils: CommitStatsCalculator, quick and dirty fix for commits without…
Browse files Browse the repository at this point in the history
… parents

Signed-off-by: Máximo Cuadros <[email protected]>
  • Loading branch information
mcuadros authored and ajnavarro committed May 31, 2019
1 parent fb353f2 commit e99002a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/function/commit_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ func (f *CommitStats) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
}

csc := utils.NewCommitStatsCalculator(r.Repository, c)
return csc.Do()
stats, _ := csc.Do()
return stats, nil
}

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

0 comments on commit e99002a

Please sign in to comment.