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
This commit is contained in:
Morris Jobke 2020-09-17 11:54:47 +02:00 committed by GitHub
commit d144a84df1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ class Encryption extends Wrapper {
$encryptionModule = $this->getEncryptionModule($path);
if ($encryptionModule) {
$this->keyStorage->deleteAllFileKeys($this->getFullPath($path));
$this->keyStorage->deleteAllFileKeys($fullPath);
}
return $this->storage->unlink($path);