Skip to content

Commit 414c04e

Browse files
authored
Fix nil compile times (#1776)
1 parent 96d7293 commit 414c04e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/execute/tsc/statistics.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,8 @@ func (s *Statistics) Aggregate(stat *Statistics) {
150150
}
151151

152152
func (s *Statistics) SetTotalTime(totalTime time.Duration) {
153+
if s.compileTimes == nil {
154+
s.compileTimes = &CompileTimes{}
155+
}
153156
s.compileTimes.totalTime = totalTime
154157
}

0 commit comments

Comments
 (0)