Skip to content

Commit 83520d5

Browse files
committed
Clean coding style
1 parent fcf6d1a commit 83520d5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/private/Files/View.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
use OCP\Files\Storage\IChunkedFileWrite;
6565
use OCP\Files\Storage\IStorage;
6666
use OCP\Files\StorageInvalidException;
67-
use OCP\ILogger;
6867
use OCP\IUser;
6968
use OCP\Lock\ILockingProvider;
7069
use OCP\Lock\LockedException;
@@ -838,14 +837,14 @@ public function rename($path1, $path2) {
838837
} else {
839838
$result = false;
840839
}
841-
// moving a file/folder within the same mount point
840+
// moving a file/folder within the same mount point
842841
} elseif ($storage1 === $storage2) {
843842
if ($storage1) {
844843
$result = $storage1->rename($internalPath1, $internalPath2);
845844
} else {
846845
$result = false;
847846
}
848-
// moving a file/folder between storages (from $storage1 to $storage2)
847+
// moving a file/folder between storages (from $storage1 to $storage2)
849848
} else {
850849
$result = $storage2->moveFromStorage($storage1, $internalPath1, $internalPath2);
851850
}
@@ -1064,7 +1063,6 @@ public function toTmpFile($path) {
10641063
public function fromTmpFile($tmpFile, $path) {
10651064
$this->assertPathLength($path);
10661065
if (Filesystem::isValidPath($path)) {
1067-
10681066
// Get directory that the file is going into
10691067
$filePath = dirname($path);
10701068

@@ -1820,7 +1818,6 @@ private function assertPathLength($path) {
18201818
* @return boolean
18211819
*/
18221820
private function targetIsNotShared(IStorage $targetStorage, string $targetInternalPath) {
1823-
18241821
// note: cannot use the view because the target is already locked
18251822
$fileId = (int)$targetStorage->getCache()->getId($targetInternalPath);
18261823
if ($fileId === -1) {

0 commit comments

Comments
 (0)