mirror of
https://github.com/jellyfin/jellyfin-plugin-bookshelf.git
synced 2024-11-23 05:39:51 +00:00
Declare and initialize dateValue in the same line
This commit is contained in:
parent
24df4b3e3d
commit
9267256e35
@ -126,8 +126,7 @@ namespace Jellyfin.Plugin.Bookshelf.Providers
|
||||
|
||||
ReadStringInto("//dc:date", date =>
|
||||
{
|
||||
DateTime dateValue;
|
||||
if (DateTime.TryParse(date, out dateValue))
|
||||
if (DateTime.TryParse(date, out var dateValue))
|
||||
{
|
||||
book.PremiereDate = dateValue.Date;
|
||||
book.ProductionYear = dateValue.Date.Year;
|
||||
|
Loading…
Reference in New Issue
Block a user