Skip to content

Commit bdf95ef

Browse files
authored
Merge pull request #14558 from nextcloud/fix/13790/fix-comment
Fix unnecessary boolean cast
2 parents d004164 + 4b49e2e commit bdf95ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/External/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ public function removeShare($mountPoint) {
522522

523523
$share = $getShare->fetch();
524524
$getShare->closeCursor();
525-
if ($result && (bool)$share !== false && (int)$share['share_type'] === Share::SHARE_TYPE_USER) {
525+
if ($result && $share !== false && (int)$share['share_type'] === Share::SHARE_TYPE_USER) {
526526
try {
527527
$this->sendFeedbackToRemote($share['remote'], $share['share_token'], $share['remote_id'], 'decline');
528528
} catch (\Exception $e) {

0 commit comments

Comments
 (0)