Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify and reduce LOC in ControlHandler #6808

Merged
merged 13 commits into from Nov 10, 2021

Conversation

cvium
Copy link
Member

@cvium cvium commented Nov 8, 2021

Changes
Cleanup. Simplified and generalized some not-so-DRY methods.

@cvium
Copy link
Member Author

cvium commented Nov 9, 2021

@jellyfin-bot rebase

Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
@@ -330,75 +331,72 @@ private void HandleBrowse(XmlWriter xmlWriter, IReadOnlyDictionary<string, strin

int totalCount;

var settings = new XmlWriterSettings
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is duplicated below, maybe create a private property that returns a new instance with these settings?

Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Emby.Dlna/ContentDirectory/ControlHandler.cs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants