Skip to content

Commit 453b67f

Browse files
committed
refactor: removed comments
1 parent 5e1ada3 commit 453b67f

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

packages/contentstack-variants/src/export/projects.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,21 @@ export default class ExportProjects extends PersonalizationAdapter<ExportConfig>
6363
this.exportConfig.project_id = this.projectsData[0]?.uid;
6464
log.debug(`Set project ID: ${this.projectsData[0]?.uid}`, this.exportConfig.context);
6565

66-
// Create progress manager - use parent if available, otherwise create nested
6766
let progress: any;
6867
if (this.parentProgressManager) {
69-
// Use parent progress manager - projects process should already be started by parent
7068
progress = this.parentProgressManager;
7169
this.progressManager = this.parentProgressManager;
7270
} else {
73-
// Create our own progress for standalone execution
7471
progress = this.createNestedProgress('Projects');
7572
progress.addProcess('Projects', 1);
7673
progress.startProcess('Projects').updateStatus('Processing and exporting project data...', 'Projects');
7774
}
7875

79-
// Process and Projects
8076
const projectsFilePath = pResolve(sanitizePath(this.projectsFolderPath), 'projects.json');
8177
log.debug(`Writing projects to: ${projectsFilePath}`, this.exportConfig.context);
8278
fsUtil.writeFile(projectsFilePath, this.projectsData);
8379
log.debug('Projects export completed successfully', this.exportConfig.context);
8480

85-
// Update progress - use appropriate process name based on context
8681
const processName = this.parentProgressManager ? 'Projects' : 'Projects';
8782
this.updateProgress(true, 'project export', undefined, processName);
8883

0 commit comments

Comments
 (0)