Skip to content

Commit

Permalink
Update lib/Mount/GroupFolderStorage.php
Browse files Browse the repository at this point in the history
Agreed. Doing the comparison with the `===` operator is better, because it is stricter. Thank you very much for the suggestion.

Co-authored-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: cfiehe <[email protected]>
  • Loading branch information
2 people authored and Christoph Fiehe committed Sep 11, 2024
1 parent 670e5c7 commit 1faaaca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mount/GroupFolderStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use OC\Files\ObjectStore\ObjectStoreStorage;
use OC\Files\Storage\Wrapper\Quota;
use OCP\Files\Cache\ICacheEntry;
use OCP\Files\Storage\IStorage;
use OCP\IUser;
use OCP\IUserSession;

Expand Down Expand Up @@ -73,7 +74,7 @@ public function getScanner($path = '', $storage = null) {
public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $targetInternalPath) {
if ($sourceStorage->instanceOfStorage(ObjectStoreStorage::class) &&
$this->instanceOfStorage(ObjectStoreStorage::class) &&
$sourceStorage->getObjectStore()->getStorageId() == $this->getObjectStore()->getStorageId()) {
$sourceStorage->getObjectStore()->getStorageId() === $this->getObjectStore()->getStorageId()) {
// Do not import any data when source and target object storages are identical.
return true;
}
Expand Down

0 comments on commit 1faaaca

Please sign in to comment.