Skip to content

Commit

Permalink
chore: remove some dead code and improve styling in the reference lis…
Browse files Browse the repository at this point in the history
…tener

Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Oct 30, 2024
1 parent 364c86f commit 49054ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Listener/CalendarReferenceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,16 @@
*/
class CalendarReferenceListener implements IEventListener {
public function __construct(
private CalendarInitialStateService $calendarinitialStateService,
private CalendarInitialStateService $calendarInitialStateService,
) {
$this->calendarinitialStateService = $calendarinitialStateService;
}

public function handle(Event $event): void {
if (!$event instanceof RenderReferenceEvent) {
return;
}
$this->calendarinitialStateService->run();

$this->calendarInitialStateService->run();
Util::addScript(Application::APP_ID, 'calendar-reference');
}
}

0 comments on commit 49054ec

Please sign in to comment.