mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
remove unnecessary finally blocks
This commit is contained in:
parent
d4504c39c6
commit
4e9d129dd3
2 changed files with 2 additions and 4 deletions
|
@ -245,10 +245,10 @@ abstract class BaseModule implements ICanHandleRequests
|
||||||
|
|
||||||
$this->response->setStatus($e->getCode(), $e->getMessage());
|
$this->response->setStatus($e->getCode(), $e->getMessage());
|
||||||
$this->response->addContent($httpException->content($e));
|
$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();
|
return $this->response->generate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,8 +92,6 @@ class RemoveMe extends BaseSettings
|
||||||
$this->baseUrl->redirect();
|
$this->baseUrl->redirect();
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->systemMessages->addNotice($e->getMessage());
|
$this->systemMessages->addNotice($e->getMessage());
|
||||||
} finally {
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue