fix nil ptr

This commit is contained in:
Niko Storni 2020-05-22 12:47:18 -04:00
parent 47e467057d
commit 83f2c28c20
No known key found for this signature in database
GPG key ID: 951CA4715245B535

View file

@ -33,6 +33,9 @@ func TimedComponent(component string) *Timing {
}
func ClearTimings() {
if timings == nil {
return
}
timings.Range(func(key interface{}, value interface{}) bool {
timings.Delete(key)
return true