diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-10-08 00:46:50 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-10-08 00:46:50 +0200 |
commit | fdf4e1ebb2a458f767b57abddac337d1b92f45b6 (patch) | |
tree | fc317742105676c9c51dfe79fcec8e1183d53579 | |
parent | bea5bbde3115408c5d91f36dbc2a0dacf1b32520 (diff) | |
download | nextcloud-server-fdf4e1ebb2a458f767b57abddac337d1b92f45b6.tar.gz nextcloud-server-fdf4e1ebb2a458f767b57abddac337d1b92f45b6.zip |
Remove duplicate code
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index c205cc5f81b..587178e8ede 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -323,11 +323,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { switch ($name) { case 'CONTENT_TYPE' : case 'CONTENT_LENGTH' : - if (isset($this->server[$name])) { - return $this->server[$name]; - } - break; - case 'REMOTE_ADDR' : + case 'REMOTE_ADDR': if (isset($this->server[$name])) { return $this->server[$name]; } |