Skip to content

Commit c75703c

Browse files
committed
fix: failed test
1 parent 8ed3161 commit c75703c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/container/container.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (d *DataContainer) metrics(com *CommitStats, lang *LanguageStats) map[strin
5252

5353
// GetStats returns the statistics
5454
func (d *DataContainer) GetStats(c clock.Clock) string {
55-
res := strings.Builder{}
55+
b := strings.Builder{}
5656

5757
// show metrics based on the environment variable
5858
w := d.metrics(d.CalculateCommits(), d.CalculateLanguages())
@@ -66,7 +66,7 @@ func (d *DataContainer) GetStats(c clock.Clock) string {
6666
}
6767

6868
// Show last update time if enabled
69-
showLastUpdated(cl, &b, d.Config)
69+
showLastUpdated(c, &b, d.Config)
7070

7171
d.Logger.Println("Created statistics successfully")
7272

@@ -267,7 +267,7 @@ func (d *DataContainer) InitCommits(ctx context.Context) error {
267267
}
268268

269269
errChan <- nil
270-
}(repo)
270+
}(i, repo)
271271
}
272272

273273
go func() {

0 commit comments

Comments
 (0)