Skip to content

Commit dc315c8

Browse files
committed
*edit - MatchQuery - unnecessary conditions removed
1 parent d2a26a4 commit dc315c8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Query/MatchQuery.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ public function build(): array
2929
{
3030
$build = parent::build();
3131

32-
if (null !== $this->operator) {
33-
$this->buildOperatorTo($build[$this->getQueryName()][$this->field]);
34-
}
35-
36-
if (null !== $this->minimumShouldMatch) {
37-
$this->buildMinimumShouldMatchTo($build[$this->getQueryName()][$this->field]);
38-
}
32+
$this->buildOperatorTo($build[$this->getQueryName()][$this->field]);
33+
$this->buildMinimumShouldMatchTo($build[$this->getQueryName()][$this->field]);
3934

4035
return $build;
4136
}

0 commit comments

Comments
 (0)