From bb730a1ee36780eb9828406d882e110a0b6dfaa0 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Tue, 16 Jul 2024 08:33:53 +0200 Subject: [PATCH] fix(files_sharing): remove undesirable translations from ShareAPIController Signed-off-by: skjnldsv --- apps/files_sharing/lib/Controller/ShareAPIController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 1ba4d441bc0..f2ace7b4d70 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -2037,10 +2037,10 @@ class ShareAPIController extends OCSController { 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(); -- 2.39.5