Skip to content

Commit

Permalink
Merge pull request #46551 from nextcloud/fix/shareapi-l10n
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Jul 16, 2024
2 parents 2f9fcc2 + bb730a1 commit 3dfebcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2037,10 +2037,10 @@ private function checkInheritedAttributes(IShare $share): void {
if ($storage instanceof Wrapper) {
$storage = $storage->getInstanceOfStorage(SharedStorage::class);
if ($storage === null) {
throw new \RuntimeException($this->l->t('Should not happen, instanceOfStorage but getInstanceOfStorage return null'));
throw new \RuntimeException('Should not happen, instanceOfStorage but getInstanceOfStorage return null');
}
} else {
throw new \RuntimeException($this->l->t('Should not happen, instanceOfStorage but not a wrapper'));
throw new \RuntimeException('Should not happen, instanceOfStorage but not a wrapper');
}
/** @var \OCA\Files_Sharing\SharedStorage $storage */
$inheritedAttributes = $storage->getShare()->getAttributes();
Expand Down

0 comments on commit 3dfebcb

Please sign in to comment.