Skip to content

Commit

Permalink
Minor improvment if "\n" gets returned
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Nov 19, 2024
1 parent 075cd63 commit fd3d217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/LexBoxApi/Services/HgService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private string[] GetWsList(System.Xml.XmlElement root, string tagName)
{
var result = await ExecuteHgCommandServerCommand(code, "flexmodelversion", token);
var text = await result.ReadAsStringAsync(token);
if (string.IsNullOrEmpty(text)) return null;
if (string.IsNullOrWhiteSpace(text)) return null;
try
{
var json = JsonDocument.Parse(text);
Expand Down

0 comments on commit fd3d217

Please sign in to comment.