diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-03-01 17:12:22 +0100 |
|---|---|---|
| committer | Bond-009 <bond.009@outlook.com> | 2019-03-01 17:12:22 +0100 |
| commit | 9993dafe54fe4310d1008434405198d822ef51cc (patch) | |
| tree | bb0ee1c270956acae13c73cd8b6df8f9469e3632 /Emby.Dlna/ContentDirectory/ControlHandler.cs | |
| parent | 594b2713832dfd56b70a505d25288467003805af (diff) | |
Don't mix LINQ and roreach loops for readability
Diffstat (limited to 'Emby.Dlna/ContentDirectory/ControlHandler.cs')
| -rw-r--r-- | Emby.Dlna/ContentDirectory/ControlHandler.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.cs index 1150afdbab..84f38ff769 100644 --- a/Emby.Dlna/ContentDirectory/ControlHandler.cs +++ b/Emby.Dlna/ContentDirectory/ControlHandler.cs @@ -260,7 +260,7 @@ namespace Emby.Dlna.ContentDirectory if (item.IsDisplayedAsFolder || serverItem.StubType.HasValue) { - var childrenResult = (GetUserItems(item, serverItem.StubType, user, sortCriteria, start, requestedCount)); + var childrenResult = GetUserItems(item, serverItem.StubType, user, sortCriteria, start, requestedCount); _didlBuilder.WriteFolderElement(writer, item, serverItem.StubType, null, childrenResult.TotalRecordCount, filter, id); } @@ -273,7 +273,7 @@ namespace Emby.Dlna.ContentDirectory } else { - var childrenResult = (GetUserItems(item, serverItem.StubType, user, sortCriteria, start, requestedCount)); + var childrenResult = GetUserItems(item, serverItem.StubType, user, sortCriteria, start, requestedCount); totalCount = childrenResult.TotalRecordCount; provided = childrenResult.Items.Length; |
