Skip to content

Commit

Permalink
Merge pull request #22903 from nextcloud/techdebt/16696/no-need-to-ge…
Browse files Browse the repository at this point in the history
…t-full-path-again

Do not fetch the normalized full path again if it is already available
  • Loading branch information
MorrisJobke authored Sep 17, 2020
2 parents 681e51c + 063ac9d commit d144a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Wrapper/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public function unlink($path) {

$encryptionModule = $this->getEncryptionModule($path);
if ($encryptionModule) {
$this->keyStorage->deleteAllFileKeys($this->getFullPath($path));
$this->keyStorage->deleteAllFileKeys($fullPath);
}

return $this->storage->unlink($path);
Expand Down

0 comments on commit d144a84

Please sign in to comment.