Skip to content

Commit 68d9373

Browse files
authored
fix: migrate - safeguard possibly null values (#5730)
1 parent e6c09c0 commit 68d9373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/project-cleanup-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export class ProjectCleanupService implements IProjectCleanupService {
2727
options?: IProjectCleanupOptions
2828
): Promise<IProjectCleanupResult> {
2929
this.spinner = this.$terminalSpinnerService.createSpinner({
30-
isSilent: options.silent,
30+
isSilent: options?.silent,
3131
});
3232

33-
let stats = options.stats ? new Map<string, number>() : false;
33+
let stats = options?.stats ? new Map<string, number>() : false;
3434

3535
let success = true;
3636
for (const pathToClean of pathsToClean) {

0 commit comments

Comments
 (0)