diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-11-08 17:01:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 17:01:02 +0100 |
commit | 6fbf430fe30a90d900397a28a3357d0e1fc7ffb5 (patch) | |
tree | fc2073c9f69625370a7d812c7b99b08decaba60e /lib/private/TextProcessing | |
parent | 12c558f20ad27237f4650aca53056ae7e263e459 (diff) | |
download | nextcloud-server-6fbf430fe30a90d900397a28a3357d0e1fc7ffb5.tar.gz nextcloud-server-6fbf430fe30a90d900397a28a3357d0e1fc7ffb5.zip |
Update lib/private/TextProcessing/Manager.php
Co-authored-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TextProcessing')
-rw-r--r-- | lib/private/TextProcessing/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TextProcessing/Manager.php b/lib/private/TextProcessing/Manager.php index d6633568553..c165f229919 100644 --- a/lib/private/TextProcessing/Manager.php +++ b/lib/private/TextProcessing/Manager.php @@ -158,7 +158,7 @@ class Manager implements IManager { throw new PreConditionNotMetException('No LanguageModel provider is installed that can handle this task'); } $task->setStatus(OCPTask::STATUS_SCHEDULED); - [$provider, ] = $this->getPreferredProviders($task); + [$provider,] = $this->getPreferredProviders($task); if ($provider instanceof IProviderWithExpectedRuntime) { $completionExpectedAt = new \DateTime('now'); $completionExpectedAt->add(new \DateInterval('PT'.$provider->getExpectedRuntime().'S')); |