Browse Source

Perf: close write stream explictly to prevent leak

SukkaW 1 year ago
parent
commit
86ccf71667
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Build/lib/create-file.ts

+ 1 - 0
Build/lib/create-file.ts

@@ -86,5 +86,6 @@ export async function compareAndWriteFile(span: Span, linesA: string[], filePath
     }
 
     writeStream.end();
+    writeStream.close();
   });
 }