remove duplicated code
This commit is contained in:
parent
5a1194520e
commit
83417d69be
|
@ -209,10 +209,7 @@ class Proxy extends \OC_FileProxy {
|
||||||
|
|
||||||
$util = new Util($view, $userId);
|
$util = new Util($view, $userId);
|
||||||
|
|
||||||
// get relative path
|
list($owner, $ownerPath) = $util->getUidAndFilename($relPath);
|
||||||
$relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path);
|
|
||||||
|
|
||||||
list($owner, $ownerPath) = $util->getUidAndFilename($relativePath);
|
|
||||||
|
|
||||||
// Delete keyfile & shareKey so it isn't orphaned
|
// Delete keyfile & shareKey so it isn't orphaned
|
||||||
if (!Keymanager::deleteFileKey($view, $ownerPath)) {
|
if (!Keymanager::deleteFileKey($view, $ownerPath)) {
|
||||||
|
|
Loading…
Reference in New Issue