Skip to content

Commit

Permalink
fix(files_sharing): remove undesirable translations from ShareAPICont…
Browse files Browse the repository at this point in the history
…roller

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jul 16, 2024
1 parent 70dd8d5 commit bb730a1
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 bb730a1

Please sign in to comment.