lib/promscrape: yet another typo fix after ed8441ec52

This commit is contained in:
Aliaksandr Valialkin 2021-02-26 23:35:47 +02:00
parent 8683ea85e6
commit a78948ae8b

View file

@ -567,6 +567,9 @@ func (swc *scrapeWorkCache) Get(key string) *ScrapeWork {
swe.lastAccessTime = currentTime
}
swc.mu.Unlock()
if swe == nil {
return nil
}
return swe.sw
}