refactor: hlint

This commit is contained in:
Gregor Kleen 2021-02-17 15:12:56 +01:00
parent 8d1f216b5b
commit e179c0ff6c

View File

@ -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''