mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 17:53:35 +03:00
Fix elm.json or readme changing not invalidating the cache
This commit is contained in:
parent
49f11ed7db
commit
cb016b8972
@ -3822,9 +3822,9 @@ computeProjectContext projectVisitor project maybePreviousCache =
|
||||
Just previousCache ->
|
||||
if
|
||||
-- If the previous context stayed the same
|
||||
(previousCache.elmJson.context /= elmJsonCacheEntry.context)
|
||||
(previousCache.elmJson.context == elmJsonCacheEntry.context)
|
||||
-- and the readme stayed the same
|
||||
|| (previousCache.readme.value == readmeData)
|
||||
&& (previousCache.readme.value == readmeData)
|
||||
then
|
||||
previousCache.readme
|
||||
|
||||
@ -3858,9 +3858,9 @@ computeProjectContext projectVisitor project maybePreviousCache =
|
||||
Just previousCache ->
|
||||
if
|
||||
-- If the previous context stayed the same
|
||||
(previousCache.readme.context /= readmeCacheEntry.context)
|
||||
(previousCache.readme.context == readmeCacheEntry.context)
|
||||
-- and the dependencies stayed the same
|
||||
|| (previousCache.dependencies.value == dependencies)
|
||||
&& (previousCache.dependencies.value == dependencies)
|
||||
then
|
||||
previousCache.dependencies
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user