Skip to content

Commit ac85148

Browse files
committed
Commit ommited change to ApiController
1 parent da2c220 commit ac85148

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/Controller/Api/ApiController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ public function createNewUserCalendar(Request $request, string $username, Manage
286286
$calendarInstance->setCalendar($calendar);
287287

288288
$calendarComponents = [];
289-
// Handle both boolean and string values
290289
$eventsSupport = $data['events_support'] ?? true;
291290
if (true === $eventsSupport || 'true' === $eventsSupport) {
292291
$calendarComponents[] = Calendar::COMPONENT_EVENTS;
@@ -384,7 +383,6 @@ public function editUserCalendar(Request $request, string $username, int $calend
384383
$calendarInstance->setDescription($calendarDescription);
385384

386385
$calendarComponents = [];
387-
// Handle both boolean and string values
388386
$eventsSupport = $data['events_support'] ?? true;
389387
if (true === $eventsSupport || 'true' === $eventsSupport) {
390388
$calendarComponents[] = Calendar::COMPONENT_EVENTS;

0 commit comments

Comments
 (0)