Skip to content

Commit d144a84

Browse files
authored
Merge pull request #22903 from nextcloud/techdebt/16696/no-need-to-get-full-path-again
Do not fetch the normalized full path again if it is already available
2 parents 681e51c + 063ac9d commit d144a84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Storage/Wrapper/Encryption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public function unlink($path) {
263263

264264
$encryptionModule = $this->getEncryptionModule($path);
265265
if ($encryptionModule) {
266-
$this->keyStorage->deleteAllFileKeys($this->getFullPath($path));
266+
$this->keyStorage->deleteAllFileKeys($fullPath);
267267
}
268268

269269
return $this->storage->unlink($path);

0 commit comments

Comments
 (0)