aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-11-14 10:11:24 -0100
committerMaxence Lange <maxence@artificial-owl.com>2023-11-14 10:11:24 -0100
commit761a688ec946950df6e7136410711c951fc0dc3b (patch)
tree3a3f0cfee74baeb41c13f05f4f34b6a52db11ed3 /lib/private/Files/Cache
parent3af12b2a50222c0e83273c939e5abdd747b82d9e (diff)
downloadnextcloud-server-761a688ec946950df6e7136410711c951fc0dc3b.tar.gz
nextcloud-server-761a688ec946950df6e7136410711c951fc0dc3b.zip
fix psalm
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/Files/Cache')
-rw-r--r--lib/private/Files/Cache/SearchBuilder.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Files/Cache/SearchBuilder.php b/lib/private/Files/Cache/SearchBuilder.php
index 7d4a84bffbe..c3699cca63d 100644
--- a/lib/private/Files/Cache/SearchBuilder.php
+++ b/lib/private/Files/Cache/SearchBuilder.php
@@ -243,11 +243,7 @@ class SearchBuilder {
}
- private function getExtraOperatorField(ISearchComparison $operator, ?IMetadataQuery $metadataQuery): array {
- if (null === $metadataQuery) {
- throw new \InvalidArgumentException('IMetadataQuery is null while calling getExtraOperatorField');
- }
-
+ private function getExtraOperatorField(ISearchComparison $operator, IMetadataQuery $metadataQuery): array {
$field = $operator->getField();
$value = $operator->getValue();
$type = $operator->getType();