diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-11-14 10:11:24 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2023-11-14 10:11:24 -0100 |
commit | 761a688ec946950df6e7136410711c951fc0dc3b (patch) | |
tree | 3a3f0cfee74baeb41c13f05f4f34b6a52db11ed3 /lib/private/Files/Cache | |
parent | 3af12b2a50222c0e83273c939e5abdd747b82d9e (diff) | |
download | nextcloud-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.php | 6 |
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(); |