refactor: hlint
This commit is contained in:
parent
8d1f216b5b
commit
e179c0ff6c
@ -82,7 +82,7 @@ insertLRU k t newVal oldLRU@LRU{..} now
|
||||
| Just (_, w) <- newVal, w > lruMaximumWeight = (oldLRU, now)
|
||||
| Just (_, w) <- newVal = (, later) $
|
||||
let (lruStore', lruWeight') = evictToSize (lruMaximumWeight - w) lruStore lruWeight
|
||||
((fromMaybe 0 . preview (_Just . _2 . _2) -> oldWeight), lruStore'')
|
||||
(fromMaybe 0 . preview (_Just . _2 . _2) -> oldWeight, lruStore'')
|
||||
= OrdPSQ.alter (, ((t, now), ) <$> newVal) k lruStore'
|
||||
in oldLRU
|
||||
{ lruStore = lruStore''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user