File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,14 @@ export async function runCreateLetter(options: {
6060 ] ;
6161
6262 await new Promise < void > ( ( resolve , reject ) => {
63- let output = "" ;
6463 const child = spawn ( cmd , args , {
6564 stdio : "inherit" ,
6665 cwd : root ,
6766 shell : false ,
6867 } ) ;
6968 child . stdout ?. on ( "id" , ( id ) => {
7069 const text = id . toString ( ) ;
71- output += text ;
72- process . stdout . write ( output ) ;
70+ process . stdout . write ( text ) ;
7371 } ) ;
7472
7573 child . on ( "close" , ( code ) =>
@@ -127,7 +125,7 @@ export async function createSupplierData(options: {
127125 child . stdout ?. on ( "id" , ( id ) => {
128126 const text = id . toString ( ) ;
129127 output += text ;
130- process . stdout . write ( output ) ;
128+ process . stdout . write ( text ) ;
131129 } ) ;
132130
133131 child . on ( "close" , ( code ) =>
You can’t perform that action at this time.
0 commit comments