Переглянути джерело

refactor: remove the ability to update tipi through the ui

Nicolas Meienberger 1 рік тому
батько
коміт
49f025e188
1 змінених файлів з 1 додано та 4 видалено
  1. 1 4
      packages/cli/src/executors/system/system.executors.ts

+ 1 - 4
packages/cli/src/executors/system/system.executors.ts

@@ -407,16 +407,13 @@ export class SystemExecutors {
             bar.stop();
             bar.stop();
             this.logger.error(`Failed to download Tipi: ${err}`);
             this.logger.error(`Failed to download Tipi: ${err}`);
             spinner.fail(`\nFailed to download Tipi ${targetVersion}`);
             spinner.fail(`\nFailed to download Tipi ${targetVersion}`);
-            writer.close();
             reject(err);
             reject(err);
           });
           });
 
 
           writer.on('finish', () => {
           writer.on('finish', () => {
             this.logger.info('Download complete');
             this.logger.info('Download complete');
             bar.stop();
             bar.stop();
-            writer.close(() => {
-              resolve('');
-            });
+            resolve('');
           });
           });
         });
         });
       }).catch((e) => {
       }).catch((e) => {