Skip to content

Commit

Permalink
perf: Avoid unnecessary TrimEnd call
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Mar 1, 2023
1 parent 64a4eac commit da8e8a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ private static void ScavengeCache()
adjusted = new(XBindExpressionParser.RewriteDocumentPaths(adjusted.ToString()));
}

return (XmlReader.Create(new StringReader(adjusted.ToString().TrimEnd("\r\n"))), conditionals.DisableCaching);
return (XmlReader.Create(new StringReader(adjusted.ToString())), conditionals.DisableCaching);
}

private static StringBuilder ReplaceFirst(string targetString, string oldValue, string newValue)
Expand Down

0 comments on commit da8e8a4

Please sign in to comment.