cosmetics syntax simplification

Bug: N/A
Test: m nothing
Change-Id: I9b34635ba145db568e185f795107c202e376f3c7
This commit is contained in:
Usta Shrestha 2022-10-11 21:56:46 -04:00 committed by Usta (Tsering) Shrestha
parent ad9fbde7de
commit 63cad2c08f

View file

@ -31,10 +31,8 @@ type EventHandler struct {
scopeStartTimes []time.Time
}
// _now wraps the time.Now() function. _now is declared for unit testing purpose.
var _now = func() time.Time {
return time.Now()
}
// _now simply delegates to time.Now() function. _now is declared for unit testing purpose.
var _now = time.Now
// Event holds the performance metrics data of a single build event.
type Event struct {