Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename varialbe to success for clarity.
  • Loading branch information
jcassidyav committed Oct 27, 2021
commit b215245b386c3ed7875c37bbe95291ae5a8e8061
6 changes: 3 additions & 3 deletions lib/services/project-cleanup-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class ProjectCleanupService implements IProjectCleanupService {
}

public async clean(pathsToClean: string[]): Promise<boolean> {
let result = true;
let success = true;
for (const pathToClean of pathsToClean) {
const isCleaned = await this.cleanPath(pathToClean).catch((error) => {
this.$logger.trace(
Expand All @@ -25,9 +25,9 @@ export class ProjectCleanupService implements IProjectCleanupService {
);
return false;
});
result = result && isCleaned;
success = success && isCleaned;
}
return result;
return success;
}

public async cleanPath(pathToClean: string): Promise<boolean> {
Expand Down