summaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-26 10:15:39 +0100
committerGitHub <noreply@github.com>2018-01-26 10:15:39 +0100
commitc2b1bd92d6f6e675f7ffab420cd61c5be701c4a6 (patch)
tree10e093ff030f1436fe3862c4b1944dbcf050723d /lib/private/App
parentfab951e4b3d103b68b21ccb864d229c4023b57ac (diff)
parent0a56d2185e79caf81f5160cb8503955d9c3108a6 (diff)
downloadnextcloud-server-c2b1bd92d6f6e675f7ffab420cd61c5be701c4a6.tar.gz
nextcloud-server-c2b1bd92d6f6e675f7ffab420cd61c5be701c4a6.zip
Merge pull request #8063 from nextcloud/inline-value
Return value immediately instead of assigning to a one-time variable
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/Platform.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/App/Platform.php b/lib/private/App/Platform.php
index 344e420b7d3..fe4d7ff48f7 100644
--- a/lib/private/App/Platform.php
+++ b/lib/private/App/Platform.php
@@ -94,7 +94,6 @@ class Platform {
public function getLibraryVersion($name) {
$repo = new PlatformRepository();
- $lib = $repo->findLibrary($name);
- return $lib;
+ return $repo->findLibrary($name);
}
}