lib/promscrape: yet another typo fix after ed8441ec52

This commit is contained in:
Aliaksandr Valialkin 2021-02-26 23:35:47 +02:00
parent c1b8729bd8
commit 44975e28fe

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
}