File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -405,11 +405,6 @@ class Launcher {
405
405
406
406
destroyTmp ( ) {
407
407
return new Promise < void > ( resolve => {
408
- // Only clean up the tmp dir if we created it.
409
- if ( this . userDataDir === undefined || this . opts . userDataDir !== undefined ) {
410
- return resolve ( ) ;
411
- }
412
-
413
408
if ( this . outFile ) {
414
409
this . fs . closeSync ( this . outFile ) ;
415
410
delete this . outFile ;
@@ -419,6 +414,11 @@ class Launcher {
419
414
this . fs . closeSync ( this . errFile ) ;
420
415
delete this . errFile ;
421
416
}
417
+
418
+ // Only clean up the tmp dir if we created it.
419
+ if ( this . userDataDir === undefined || this . opts . userDataDir !== undefined ) {
420
+ return resolve ( ) ;
421
+ }
422
422
423
423
// backwards support for node v12 + v14.14+
424
424
// https://nodejs.org/api/deprecations.html#DEP0147
You can’t perform that action at this time.
0 commit comments