From 6d7a8febd5da6c832af3709c69f673b5b27619ce Mon Sep 17 00:00:00 2001 From: Petar Jakopec Date: Wed, 26 Jun 2024 13:02:54 +0200 Subject: [PATCH] NGSTACK-842 remove unecessary return --- bundle/EventListener/ScheduledVisibilityListener.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/bundle/EventListener/ScheduledVisibilityListener.php b/bundle/EventListener/ScheduledVisibilityListener.php index 4d9f819..5a4426f 100644 --- a/bundle/EventListener/ScheduledVisibilityListener.php +++ b/bundle/EventListener/ScheduledVisibilityListener.php @@ -42,8 +42,6 @@ public function onPublishVersion(PublishVersionEvent $event): void $this->scheduledVisibilityService->updateVisibilityIfNeeded($content); } catch (InvalidStateException $exception) { $this->logger->error($exception->getMessage()); - - return; } } }