diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 00:02:03 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 00:02:03 +0100 |
commit | 0a56d2185e79caf81f5160cb8503955d9c3108a6 (patch) | |
tree | c551f9f5befbe730e8b510217161f77db97dd250 /apps/files_external/lib/Service/UserStoragesService.php | |
parent | b9bbb894f8b01e000bb5e3a8a82db7bebad3ea00 (diff) | |
download | nextcloud-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/files_external/lib/Service/UserStoragesService.php')
-rw-r--r-- | apps/files_external/lib/Service/UserStoragesService.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_external/lib/Service/UserStoragesService.php b/apps/files_external/lib/Service/UserStoragesService.php index b225f1eec8c..db03befa852 100644 --- a/apps/files_external/lib/Service/UserStoragesService.php +++ b/apps/files_external/lib/Service/UserStoragesService.php @@ -112,8 +112,7 @@ class UserStoragesService extends StoragesService { */ public function addStorage(StorageConfig $newStorage) { $newStorage->setApplicableUsers([$this->getUser()->getUID()]); - $config = parent::addStorage($newStorage); - return $config; + return parent::addStorage($newStorage); } /** |