]> git.mxchange.org Git - friendica.git/commitdiff
remove unnecessary finally blocks
authorArt4 <art4@wlabs.de>
Fri, 22 Nov 2024 11:02:27 +0000 (11:02 +0000)
committerArt4 <art4@wlabs.de>
Fri, 22 Nov 2024 11:02:27 +0000 (11:02 +0000)
src/BaseModule.php
src/Module/Settings/RemoveMe.php

index a98da3a088802f48af612e2ca2fdd0bdf4b959c9..a1f4c033c6a4b76b9378a3c2bf48c04292400405 100644 (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();
        }
 
index 59165bccbaea9aa582ed6d132de3bc8e7e9d2a37..cae57d2f0f4713f4534ecdaf9f4f6b1d70e11dc3 100644 (file)
@@ -92,8 +92,6 @@ class RemoveMe extends BaseSettings
                        $this->baseUrl->redirect();
                } catch (\RuntimeException $e) {
                        $this->systemMessages->addNotice($e->getMessage());
-               } finally {
-                       return;
                }
        }