From 805927205c26250911889a290312af376991e7a9 Mon Sep 17 00:00:00 2001 From: James White Date: Wed, 11 Oct 2017 20:11:16 +0100 Subject: [PATCH] @cosmetic Simplify ical ProductId code since adding properties (#2164) --- src/NzbDrone.Api/Calendar/CalendarFeedModule.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs index 6836ed5d8..90c0ee75b 100644 --- a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs +++ b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs @@ -82,9 +82,10 @@ namespace NzbDrone.Api.Calendar } var movies = _movieService.GetMoviesBetweenDates(start, end, unmonitored); - var calendar = new Ical.Net.Calendar(); - - calendar.ProductId = "-//radarr.video//Radarr//EN"; + var calendar = new Ical.Net.Calendar + { + ProductId = "-//radarr.video//Radarr//EN" + }; var calendarName = "Radarr Movies Calendar"; calendar.AddProperty(new CalendarProperty("NAME", calendarName));