Skip to content

Commit e78d936

Browse files
committed
Cleanup commented out code
1 parent ab48e26 commit e78d936

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Filters/QueryMatchFilter.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ public function filter($collection): array
6060
for ($logicalAndNum = 0; $logicalAndNum < \count($matches[0]); $logicalAndNum++) {
6161
$key = $matches['key'][$logicalAndNum] ?: $matches['keySquare'][$logicalAndNum];
6262

63-
// if ($key === '') {
64-
// throw new RuntimeException('Malformed filter query: key was not set');
65-
// }
66-
6763
$operator = $matches['operator'][$logicalAndNum] ?? null;
6864
$comparisonValue = $matches['comparisonValue'][$logicalAndNum] ?? null;
6965

@@ -73,7 +69,7 @@ public function filter($collection): array
7369
try {
7470
$comparisonValue = \json_decode($comparisonValue, true, flags: JSON_THROW_ON_ERROR);
7571
} catch (\JsonException $e) {
76-
//Leave $comparisonValue as raw (regular express or non quote wrapped string
72+
//Leave $comparisonValue as raw (eg. regular express or non quote wrapped string)
7773
}
7874
}
7975

0 commit comments

Comments
 (0)