Skip to content

Commit 1d0ab50

Browse files
committed
static fixes
1 parent 04d9f12 commit 1d0ab50

File tree

1 file changed

+0
-3
lines changed
  • pkg/controller/registry/resolver/cache

1 file changed

+0
-3
lines changed

pkg/controller/registry/resolver/cache/cache.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ func (hdr *snapshotHeader) Valid() bool {
338338
func (hdr *snapshotHeader) RequestSentinelActive() bool {
339339
hdr.m.RLock()
340340
defer hdr.m.RUnlock()
341-
if hdr == nil {
342-
return false
343-
}
344341

345342
return time.Now().Before(hdr.requestSentinel)
346343
}

0 commit comments

Comments
 (0)