Skip to content

Commit

Permalink
Removed extra code
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDeCaprio committed Mar 9, 2019
1 parent fc7487b commit 27ab9f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class CacheManager extends Logging {
val cachedDataCopy = readLock {
cachedData.asScala.clone()
}
val needToRecache = cachedDataCopy.filter(cd => condition(cd))
val needToRecache = cachedDataCopy.filter(condition)
needToRecache.map { cd =>
writeLock {
// Remove the cache entry before we create a new one, so that we can have a different
Expand Down

0 comments on commit 27ab9f0

Please sign in to comment.