[Pkg-owncloud-commits] [php-sabredav] 29/42: Removed unneccessary early return in `afterResponse` event

David Prévot taffit at moszumanska.debian.org
Wed Oct 29 20:52:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit d6f909b957c65f53b5492d3c3d0b12fb9ae8d799
Author: Markus Staab <maggus.staab at googlemail.com>
Date:   Sun Oct 19 22:45:55 2014 +0200

    Removed unneccessary early return in `afterResponse` event
---
 lib/DAV/Server.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/DAV/Server.php b/lib/DAV/Server.php
index 086457d..ce261b4 100644
--- a/lib/DAV/Server.php
+++ b/lib/DAV/Server.php
@@ -477,7 +477,7 @@ class Server extends EventEmitter {
         if (!$this->emit('afterMethod', [$request, $response])) return;
 
         $this->sapi->sendResponse($response);
-        if (!$this->emit('afterResponse', [$request, $response])) return;
+        $this->emit('afterResponse', [$request, $response]);
 
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list