Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Mar 17, 2022
1 parent 88af8be commit 3c57be1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions lib/private/Files/Node/LazyUserFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

namespace OC\Files\Node;


use OCP\Constants;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
Expand All @@ -36,7 +35,7 @@ class LazyUserFolder extends LazyFolder {
public function __construct(IRootFolder $rootFolder, IUser $user) {
$this->rootFolder = $rootFolder;
$this->user = $user;
parent::__construct(function() use ($user) {
parent::__construct(function () use ($user) {
try {
return $this->rootFolder->get('/' . $user->getUID() . '/files');
} catch (NotFoundException $e) {
Expand All @@ -54,6 +53,4 @@ public function __construct(IRootFolder $rootFolder, IUser $user) {
public function get($path) {
return $this->rootFolder->get('/' . $this->user->getUID() . '/files/' . rtrim($path, '/'));
}


}
1 change: 0 additions & 1 deletion lib/private/Files/Node/Root.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
use OC\Files\View;
use OC\Hooks\PublicEmitter;
use OC\User\NoUserException;
use OCP\Constants;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\Config\IUserMountCache;
use OCP\Files\Events\Node\FilesystemTornDownEvent;
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/SetupManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ private function setupListeners() {
];

foreach ($genericEvents as $genericEvent) {
$this->eventDispatcher->addListener($genericEvent, function($event) {
$this->eventDispatcher->addListener($genericEvent, function ($event) {
$this->cache->clear();
});
}
Expand Down

0 comments on commit 3c57be1

Please sign in to comment.