Skip to content

Commit

Permalink
Update comment about ignoring collectives
Browse files Browse the repository at this point in the history
Signed-off-by: Arno Welzel <github@arnowelzel.de>
  • Loading branch information
arnowelzel authored and skjnldsv committed Feb 24, 2024
1 parent 7de651b commit 6c9178f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Utils/Scanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function scan($dir = '', $recursive = \OC\Files\Cache\Scanner::SCAN_RECUR
}
}

// don't scan received local shares, these can be scanned when scanning the owner's storage
// don't scan received local shares or collectives, these can be scanned when scanning the owner's storage
if ($storage->instanceOfStorage(SharedStorage::class) || $storage->instanceOfStorage(CollectiveStorage::class)) {

Check failure

Code scanning / Psalm

UndefinedClass Error

Class, interface or enum named OCA\Collectives\Mount\CollectiveStorage does not exist

Check failure

Code scanning / Psalm

InvalidArgument Error

Argument 1 of OC\Files\Storage\Storage::instanceOfStorage expects class-string<OCP\Files\Storage\IStorage>, but OCA\Collectives\Mount\CollectiveStorage::class provided

Check failure on line 243 in lib/private/Files/Utils/Scanner.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

UndefinedClass

lib/private/Files/Utils/Scanner.php:243:89: UndefinedClass: Class, interface or enum named OCA\Collectives\Mount\CollectiveStorage does not exist (see https://psalm.dev/019)

Check failure on line 243 in lib/private/Files/Utils/Scanner.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

InvalidArgument

lib/private/Files/Utils/Scanner.php:243:89: InvalidArgument: Argument 1 of OC\Files\Storage\Storage::instanceOfStorage expects class-string<OCP\Files\Storage\IStorage>, but OCA\Collectives\Mount\CollectiveStorage::class provided (see https://psalm.dev/004)
continue;
}
Expand Down

0 comments on commit 6c9178f

Please sign in to comment.