Skip to content

Commit

Permalink
remove unused argument
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Jun 5, 2024
1 parent 74ea635 commit 41d2dc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core-bundle/src/EventListener/SearchIndexListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __invoke(TerminateEvent $event): void

$document = Document::createFromRequestResponse($request, $response);
$needsIndex = $this->needsIndex($request, $response, $document);
$needsDelete = $this->needsDelete($request, $response, $document);
$needsDelete = $this->needsDelete($response, $document);

try {
if ($needsIndex && $this->enabledFeatures & self::FEATURE_INDEX) {
Expand Down Expand Up @@ -113,7 +113,7 @@ private function needsIndex(Request $request, Response $response, Document $docu
return 0 !== \count($lds);
}

private function needsDelete(Request $request, Response $response, Document $document): bool
private function needsDelete(Response $response, Document $document): bool
{
// Always delete on 404 and 410 responses
if (\in_array($response->getStatusCode(), [Response::HTTP_NOT_FOUND, Response::HTTP_GONE], true)) {
Expand Down

0 comments on commit 41d2dc7

Please sign in to comment.