mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-09-22 06:36:01 +00:00
Fix odd code around WriteRequiredElementString
This commit is contained in:
@@ -45,12 +45,7 @@ namespace SabreTools.Text.Extensions
|
||||
if (value is null && throwOnError)
|
||||
throw new ArgumentNullException(nameof(value));
|
||||
|
||||
writer.WriteStartElement(localName);
|
||||
if (value is null)
|
||||
writer.WriteRaw(string.Empty);
|
||||
else
|
||||
writer.WriteString(value);
|
||||
writer.WriteFullEndElement();
|
||||
writer.WriteElementString(localName, value ?? string.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user