Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Apply rector changes#58652

Open
nextcloud-command wants to merge 2 commits intomasterfrom
automated/noid/rector-changes
Open

Apply rector changes#58652
nextcloud-command wants to merge 2 commits intomasterfrom
automated/noid/rector-changes

Conversation

@nextcloud-command
Copy link
Contributor

Automated changes by create-pull-request GitHub action

@CarlSchwan CarlSchwan force-pushed the automated/noid/rector-changes branch from 1830de9 to 671cec3 Compare March 1, 2026 21:45
@CarlSchwan CarlSchwan force-pushed the automated/noid/rector-changes branch from 671cec3 to 4588c71 Compare March 1, 2026 21:48
Comment on lines -206 to +226
} catch (Exception $e) {
} catch (DBException $e) {
$this->logger->warning('issue while deleteMetadata', ['exception' => $e, 'fileId' => $fileId]);
}

try {
$this->indexRequestService->dropIndex($fileId);
} catch (Exception $e) {
} catch (DBException $e) {
$this->logger->warning('issue while deleteMetadata', ['exception' => $e, 'fileId' => $fileId]);
}
}

public function deleteMetadataForFiles(int $storage, array $fileIds): void {
try {
$this->metadataRequestService->dropMetadataForFiles($storage, $fileIds);
} catch (Exception $e) {
} catch (DBException $e) {
$this->logger->warning('issue while deleteMetadata', ['exception' => $e, 'fileIds' => $fileIds]);
}

try {
$this->indexRequestService->dropIndexForFiles($fileIds);
} catch (Exception $e) {
} catch (DBException $e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 🧐

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, rector doing rector thing :/

Comment on lines -142 to 144
/**
* @param string $storageId
* @return \OC\Files\Mount\MountPoint[]
*/
public function getMountByStorageId($storageId) {
return $this->mountManager->findByStorageId($storageId);
}

/**
* @param int $numericId
* @return MountPoint[]
*/
public function getMountByNumericStorageId($numericId) {
return $this->mountManager->findByNumericId($numericId);
}

/**
* @param \OC\Files\Mount\MountPoint $mount
*/
public function unMount($mount) {
$this->mountManager->remove($mount);
}

public function get($path) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the deletions?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead code which is completely broken. E.g mount manager doesn't have a remove method.

Since psalm was suddenly complaining about it, i decided to just remove it since it was unused

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants