File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
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 ) =>
@@ -118,16 +116,14 @@ export async function createSupplierData(options: {
118116 ] ;
119117
120118 await new Promise < void > ( ( resolve , reject ) => {
121- let output = "" ;
122119 const child = spawn ( cmd , args , {
123120 stdio : "inherit" ,
124121 cwd : root ,
125122 shell : false ,
126123 } ) ;
127124 child . stdout ?. on ( "id" , ( id ) => {
128125 const text = id . toString ( ) ;
129- output += text ;
130- process . stdout . write ( output ) ;
126+ process . stdout . write ( text ) ;
131127 } ) ;
132128
133129 child . on ( "close" , ( code ) =>
You can’t perform that action at this time.
0 commit comments