Skip to content

Commit 0c814d0

Browse files
committed
#422762 - Fixed code smell
1 parent f9d4201 commit 0c814d0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/shared/services/catalog-browser.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class CatalogBrowserService {
4545
datasets = [datasets];
4646
}
4747

48-
for(let i = 0; i < datasets.length; i++) {
48+
for (let i = 0; i < datasets.length; i++) {
4949
const dataSet: any = datasets[i];
5050
const properties: { [key: string]: string; } = {
5151
id: dataSet["id"],
@@ -59,7 +59,7 @@ export class CatalogBrowserService {
5959
const hasPolicy = dataSet["odrl:hasPolicy"];
6060
const policy: PolicyInput = {
6161
"@type": "set",
62-
"@context" : "http://www.w3.org/ns/odrl.jsonld",
62+
"@context": "http://www.w3.org/ns/odrl.jsonld",
6363
"uid": hasPolicy["@id"],
6464
"assignee": hasPolicy["assignee"],
6565
"assigner": hasPolicy["assigner"],
@@ -83,9 +83,9 @@ export class CatalogBrowserService {
8383
}
8484
return arr;
8585
})), reduce((acc, val) => {
86-
for(let i = 0; i < val.length; i++){
87-
for(let j = 0; j < val[i].length; j++){
88-
acc.push(val[i][j]);
86+
for (const subArray of val) {
87+
for (const item of subArray) {
88+
acc.push(item);
8989
}
9090
}
9191
return acc;

0 commit comments

Comments
 (0)