Skip to content

Commit 158dbe8

Browse files
committed
refactor: optimize memory stream usage in CompileGraphAndWriteToFile method
1 parent 4f1e158 commit 158dbe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeLineCounter/Services/DependencyGraphGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static DotNode CreateNode(Dictionary<string, (int incoming, int outgoing)
162162
public static async Task CompileGraphAndWriteToFile(string fileName, string outputPath, DotGraph graph)
163163
{
164164
// Use memory buffer
165-
using var memoryStream = MemoryStreamManager.GetStream();//new MemoryStream();
165+
using var memoryStream = MemoryStreamManager.GetStream();
166166
using var writer = new StreamWriter(memoryStream);
167167

168168
var options = new CompilationOptions { Indented = true };

0 commit comments

Comments
 (0)