Skip to content

Commit 24f97a5

Browse files
committed
fix(manager): removed dead code
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
1 parent 8f1acd1 commit 24f97a5

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lib/private/Share20/Manager.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,14 +1573,8 @@ protected function checkShare(IShare $share): void {
15731573
* @return bool
15741574
*/
15751575
public function checkPassword(IShare $share, $password) {
1576-
$passwordProtected = $share->getShareType() !== IShare::TYPE_LINK
1577-
|| $share->getShareType() !== IShare::TYPE_EMAIL
1578-
|| $share->getShareType() !== IShare::TYPE_CIRCLE;
1579-
if (!$passwordProtected) {
1580-
//TODO maybe exception?
1581-
return false;
1582-
}
15831576

1577+
// if there is no password on the share object / passsword is null, there is nothing to check
15841578
if ($password === null || $share->getPassword() === null) {
15851579
return false;
15861580
}

0 commit comments

Comments
 (0)