Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Vasil Vasilev <vasil.vasilev@bosch.com>
  • Loading branch information
vvasilevbosch committed Nov 28, 2023
1 parent a6608b2 commit 43f0557
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions policy-migration/src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class PolicyMigration {
}
}

private onNext(policies: Policy[]) {
private onNext(policies: Policy[]): void {
policies
.filter((p) => !this.progress.has(p.policyId)) // filter already processed policies
.forEach((policy) => {
Expand Down Expand Up @@ -267,7 +267,6 @@ export class MigrationStep {
}

private replaceEntries(policy: Policy, replaceEntries: ReplaceEntries) {
// this.logger.debug(JSON.stringify(replaceEntries, null, 4));
policy.entries = replaceEntries.policyEntries;
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion policy-migration/src/model/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ export type AddEntry = {

export type ReplaceEntries = {
policyEntries: { [label: string]: PolicyEntry };
}
}
1 change: 0 additions & 1 deletion policy-migration/src/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export class Search {
const policiesMap: Map<String, Policy> = new Map<String, Policy>();
sr.items.forEach((item) => {
policiesMap.set(item._policy.policyId, item._policy);
this.logger.debug(`Thing found: ${item.thingId}`);
});
const policies: Policy[] = [];
policiesMap.forEach((value, _) => {
Expand Down

0 comments on commit 43f0557

Please sign in to comment.