Skip to content

Commit

Permalink
Revert "fix: don't recalculate folder size in Cache::delete if the en…
Browse files Browse the repository at this point in the history
…try didn't exist"

This reverts commit 5ca9d88.
  • Loading branch information
kesselb committed Dec 15, 2024
1 parent 10852d3 commit 65d5c71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Files/Cache/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public function remove($path) {
$this->propagator->propagateChange($path, time(), -$entry->getSize());
} else {
$this->propagator->propagateChange($path, time());
if ($this->cache instanceof Cache) {

Check failure on line 155 in lib/private/Files/Cache/Updater.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

RedundantCondition

lib/private/Files/Cache/Updater.php:155:8: RedundantCondition: Type OC\Files\Cache\Cache for $this->cache is always OC\Files\Cache\Cache (see https://psalm.dev/122)
$this->cache->correctFolderSize($parent);
}
}
}

Expand Down

0 comments on commit 65d5c71

Please sign in to comment.