remove unnecessary finally blocks

This commit is contained in:
Art4 2024-11-22 11:02:27 +00:00
parent d4504c39c6
commit 4e9d129dd3
2 changed files with 2 additions and 4 deletions

View file

@ -245,10 +245,10 @@ abstract class BaseModule implements ICanHandleRequests
$this->response->setStatus($e->getCode(), $e->getMessage());
$this->response->addContent($httpException->content($e));
} finally {
$this->profiler->set(microtime(true) - $timestamp, 'content');
}
$this->profiler->set(microtime(true) - $timestamp, 'content');
return $this->response->generate();
}

View file

@ -92,8 +92,6 @@ class RemoveMe extends BaseSettings
$this->baseUrl->redirect();
} catch (\RuntimeException $e) {
$this->systemMessages->addNotice($e->getMessage());
} finally {
return;
}
}