Skip to content

Commit

Permalink
Merge pull request #2 from dmytro-vovk/remove-dead-code
Browse files Browse the repository at this point in the history
Remove dead code
  • Loading branch information
dmytro-vovk authored Mar 23, 2023
2 parents e593358 + 9ab6b57 commit 95dfc12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,7 @@ func (c *Cache[K, V]) ticker(t *time.Timer) {
select {
case <-t.C:
case <-c.stop:
if !t.Stop() {
<-t.C
}

t.Stop()
return
}

Expand Down

0 comments on commit 95dfc12

Please sign in to comment.