summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-26 00:02:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-26 00:02:03 +0100
commit0a56d2185e79caf81f5160cb8503955d9c3108a6 (patch)
treec551f9f5befbe730e8b510217161f77db97dd250 /apps/federatedfilesharing/lib
parentb9bbb894f8b01e000bb5e3a8a82db7bebad3ea00 (diff)
downloadnextcloud-server-0a56d2185e79caf81f5160cb8503955d9c3108a6.tar.gz
nextcloud-server-0a56d2185e79caf81f5160cb8503955d9c3108a6.zip
Return value immediately instead of assigning to a one-time variable
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r--apps/federatedfilesharing/lib/AddressHandler.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/AddressHandler.php b/apps/federatedfilesharing/lib/AddressHandler.php
index 78234f17ed7..be3a624e28f 100644
--- a/apps/federatedfilesharing/lib/AddressHandler.php
+++ b/apps/federatedfilesharing/lib/AddressHandler.php
@@ -84,8 +84,7 @@ class AddressHandler {
* @return string url of the current server
*/
public function generateRemoteURL() {
- $url = $this->urlGenerator->getAbsoluteURL('/');
- return $url;
+ return $this->urlGenerator->getAbsoluteURL('/');
}
/**