diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-12-15 18:25:36 +0100 |
|---|---|---|
| committer | Cody Robibero (Rebase PR Action) <cody@robibe.ro> | 2021-12-27 14:20:05 +0000 |
| commit | ea8f40e84a72ab1eb0bdbe4974cb78f7d1b0f552 (patch) | |
| tree | ae88958599f260ea1d7e586c6a47931a5fe62f6b /Emby.Dlna/Service | |
| parent | 4441513ca4a64fdf61541e56cbb1091e7aa0395b (diff) | |
More cleanup
Diffstat (limited to 'Emby.Dlna/Service')
| -rw-r--r-- | Emby.Dlna/Service/ServiceXmlBuilder.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Emby.Dlna/Service/ServiceXmlBuilder.cs b/Emby.Dlna/Service/ServiceXmlBuilder.cs index 1e56d09b29..6e0bc6ad8b 100644 --- a/Emby.Dlna/Service/ServiceXmlBuilder.cs +++ b/Emby.Dlna/Service/ServiceXmlBuilder.cs @@ -38,7 +38,7 @@ namespace Emby.Dlna.Service builder.Append("<action>"); builder.Append("<name>") - .Append(SecurityElement.Escape(item.Name ?? string.Empty)) + .Append(SecurityElement.Escape(item.Name)) .Append("</name>"); builder.Append("<argumentList>"); @@ -48,13 +48,13 @@ namespace Emby.Dlna.Service builder.Append("<argument>"); builder.Append("<name>") - .Append(SecurityElement.Escape(argument.Name ?? string.Empty)) + .Append(SecurityElement.Escape(argument.Name)) .Append("</name>"); builder.Append("<direction>") - .Append(SecurityElement.Escape(argument.Direction ?? string.Empty)) + .Append(SecurityElement.Escape(argument.Direction)) .Append("</direction>"); builder.Append("<relatedStateVariable>") - .Append(SecurityElement.Escape(argument.RelatedStateVariable ?? string.Empty)) + .Append(SecurityElement.Escape(argument.RelatedStateVariable)) .Append("</relatedStateVariable>"); builder.Append("</argument>"); @@ -81,10 +81,10 @@ namespace Emby.Dlna.Service .Append("\">"); builder.Append("<name>") - .Append(SecurityElement.Escape(item.Name ?? string.Empty)) + .Append(SecurityElement.Escape(item.Name)) .Append("</name>"); builder.Append("<dataType>") - .Append(SecurityElement.Escape(item.DataType ?? string.Empty)) + .Append(SecurityElement.Escape(item.DataType)) .Append("</dataType>"); if (item.AllowedValues.Count > 0) |
