mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-16 04:30:24 +01:00
Remove unnecessary materializations
This commit is contained in:
@@ -168,9 +168,6 @@ internal static class BaseItemMapper
|
||||
dto.ImageInfos = entity.Images.Select(e => MapImageFromEntity(e, appHost)).ToArray();
|
||||
}
|
||||
|
||||
// dto.Type = entity.Type;
|
||||
// dto.Data = entity.Data;
|
||||
// dto.MediaType = Enum.TryParse<MediaType>(entity.MediaType);
|
||||
if (dto is IHasStartDate hasStartDate)
|
||||
{
|
||||
hasStartDate.StartDate = entity.StartDate.GetValueOrDefault();
|
||||
@@ -354,8 +351,6 @@ internal static class BaseItemMapper
|
||||
}).ToArray() ?? [];
|
||||
}
|
||||
|
||||
// dto.Type = entity.Type;
|
||||
// dto.Data = entity.Data;
|
||||
entity.MediaType = dto.MediaType.ToString();
|
||||
if (dto is IHasStartDate hasStartDate)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user